C# Класс fivenine.UnifiedMaps.MapRegion

Defines a map region.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Equals ( MapRegion other ) : bool

Determines whether the specified MapRegion is equal to the current.

Приватные методы

Метод Описание
ClampHeight ( double height ) : double
ClampWidth ( double width ) : double
GetHashCode ( ) : int
RecalculateDimensionsAndCenter ( ) : void

Описание методов

Clone() публичный Метод

Makes a copy of the current instance.
public Clone ( ) : MapRegion
Результат MapRegion

Contains() публичный Метод

public Contains ( Position position ) : bool
position Position
Результат bool

Empty() публичный статический Метод

Returns an empty map region.
public static Empty ( ) : MapRegion
Результат MapRegion

Equals() защищенный Метод

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.
Результат bool

Equals() публичный Метод

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.
Результат bool

FromPositions() публичный статический Метод

Creates a new map region that includes the specified positons.
public static FromPositions ( IEnumerable positions ) : MapRegion
positions IEnumerable The positions.
Результат MapRegion

Include() публичный Метод

public Include ( Position item ) : void
item Position
Результат void

Inflate() публичный Метод

Inflates the current region with the given dimensions.
public Inflate ( float height, float width ) : MapRegion
height float The height.
width float The width.
Результат MapRegion

MapRegion() публичный Метод

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.
Результат System

MapRegion() публичный Метод

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
Результат System

MapRegion() публичный Метод

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.
Результат System

ToString() публичный Метод

Returns a string that represents the current object.
public ToString ( ) : string
Результат string

World() публичный статический Метод

Creates a map region that includes the whole world.
public static World ( ) : MapRegion
Результат MapRegion