C# Class fivenine.UnifiedMaps.MapRegion

Defines a map region.
Mostra file Open project: fiveninedigital/UnifiedMaps Class Usage Examples

Public Methods

Method Description
Clone ( ) : MapRegion

Makes a copy of the current instance.

Contains ( Position position ) : bool
Empty ( ) : MapRegion

Returns an empty map region.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current object.

FromPositions ( IEnumerable positions ) : MapRegion

Creates a new map region that includes the specified positons.

Include ( Position item ) : void
Inflate ( float height, float width ) : MapRegion

Inflates the current region with the given dimensions.

MapRegion ( Position topLeft, Position bottomRight ) : System

Discribes a rectangular region. This region usually encloses a set of geometries or represents a area of view.

MapRegion ( Position center, double width, double height ) : System

Discribes a rectangular region. This region usually encloses a set of geometries or represents a area of view.

MapRegion ( double minX, double maxY, double maxX, double minY ) : System

Discribes a rectangular region. This region usually encloses a set of geometries or represents a area of view.

ToString ( ) : string

Returns a string that represents the current object.

World ( ) : MapRegion

Creates a map region that includes the whole world.

Protected Methods

Method Description
Equals ( MapRegion other ) : bool

Determines whether the specified MapRegion is equal to the current.

Private Methods

Method Description
ClampHeight ( double height ) : double
ClampWidth ( double width ) : double
GetHashCode ( ) : int
RecalculateDimensionsAndCenter ( ) : void

Method Details

Clone() public method

Makes a copy of the current instance.
public Clone ( ) : MapRegion
return MapRegion

Contains() public method

public Contains ( Position position ) : bool
position Position
return bool

Empty() public static method

Returns an empty map region.
public static Empty ( ) : MapRegion
return MapRegion

Equals() protected method

Determines whether the specified MapRegion is equal to the current.
protected Equals ( MapRegion other ) : bool
other MapRegion The object to compare with the current object.
return bool

Equals() public method

Determines whether the specified object is equal to the current object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
return bool

FromPositions() public static method

Creates a new map region that includes the specified positons.
public static FromPositions ( IEnumerable positions ) : MapRegion
positions IEnumerable The positions.
return MapRegion

Include() public method

public Include ( Position item ) : void
item Position
return void

Inflate() public method

Inflates the current region with the given dimensions.
public Inflate ( float height, float width ) : MapRegion
height float The height.
width float The width.
return MapRegion

MapRegion() public method

Discribes a rectangular region. This region usually encloses a set of geometries or represents a area of view.
public MapRegion ( Position topLeft, Position bottomRight ) : System
topLeft Position The top left coordinates of the bounding box.
bottomRight Position The bottom right coordinate of the bounding box.
return System

MapRegion() public method

Discribes a rectangular region. This region usually encloses a set of geometries or represents a area of view.
public MapRegion ( Position center, double width, double height ) : System
center Position Center of the bounding box
width double Width of bounding box in degress
height double Height of bounding box in degress
return System

MapRegion() public method

Discribes a rectangular region. This region usually encloses a set of geometries or represents a area of view.
public MapRegion ( double minX, double maxY, double maxX, double minY ) : System
minX double Mininium X value (longitude), left most coordinate.
maxY double Maximium Y value (laitude), northern most coordinate.
maxX double Maximium X value (longitude), right most coordinate.
minY double Minimium Y value (latitude), southern most coordinate.
return System

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

World() public static method

Creates a map region that includes the whole world.
public static World ( ) : MapRegion
return MapRegion