|
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. | |
| Vector2 | CheckAndFix (Vector2 position) |
| Checks and limits geographic coordinates. | |
| bool | CheckAndFix (ref double lng, ref double lat) |
| Checks and limits geographic coordinates. | |
| bool | InRange (Vector2 position) |
| Checks whether the specified geographic coordinates in the range. | |
Properties | |
| Vector2 | center [get] |
| Center of range. | |
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 |