![]() |
Online Maps
v3
|
Class limiting the coordinates of the map. More...
Public Member Functions | |
OnlineMapsPositionRange (float minLat, float minLng, float maxLat, float maxLng, OnlineMapsPositionRangeType type=OnlineMapsPositionRangeType.center) | |
Constructor. More... | |
Vector2 | CheckAndFix (Vector2 position) |
Checks and limits geographic coordinates. More... | |
bool | CheckAndFix (ref double lng, ref double lat) |
Checks and limits geographic coordinates. More... | |
bool | InRange (Vector2 position) |
Checks whether the specified geographic coordinates in the range. More... | |
Public Attributes | |
float | minLat = -90 |
Minimum latitude value More... | |
float | minLng = -180 |
Minimum longitude value More... | |
float | maxLat = 90 |
Maximum latitude value More... | |
float | maxLng = 180 |
Maximum longitude value More... | |
OnlineMapsPositionRangeType | type = OnlineMapsPositionRangeType.center |
Type of limitation position map. More... | |
Properties | |
Vector2 | center [get] |
Center of range. More... | |
Class limiting the coordinates of the map.
OnlineMapsPositionRange.OnlineMapsPositionRange | ( | float | minLat, |
float | minLng, | ||
float | maxLat, | ||
float | maxLng, | ||
OnlineMapsPositionRangeType | type = OnlineMapsPositionRangeType.center |
||
) |
Constructor.
minLat | Minimum latitude value |
minLng | Minimum longitude value |
maxLat | Maximum latitude value |
maxLng | Maximum longitude value |
type | Type of position lock |
bool OnlineMapsPositionRange.CheckAndFix | ( | ref double | lng, |
ref double | lat | ||
) |
Checks and limits geographic coordinates.
lng | Longitude |
lat | Latitude |
Vector2 OnlineMapsPositionRange.CheckAndFix | ( | Vector2 | position | ) |
Checks and limits geographic coordinates.
position | Geographic coordinates |
bool OnlineMapsPositionRange.InRange | ( | Vector2 | position | ) |
Checks whether the specified geographic coordinates in the range.
position | Geographic coordinates |
float OnlineMapsPositionRange.maxLat = 90 |
Maximum latitude value
float OnlineMapsPositionRange.maxLng = 180 |
Maximum longitude value
float OnlineMapsPositionRange.minLat = -90 |
Minimum latitude value
float OnlineMapsPositionRange.minLng = -180 |
Minimum longitude value
OnlineMapsPositionRangeType OnlineMapsPositionRange.type = OnlineMapsPositionRangeType.center |
Type of limitation position map.
|
get |
Center of range.