Represents a world position in LatLng format.
More...
Represents a world position in LatLng format.
◆ getCoordinates()
void getCoordinates |
( |
double & |
latitude, |
|
|
double & |
longitude, |
|
|
double & |
altitude, |
|
|
bool |
in_radian = true |
|
) |
| const |
Get the coordinates in radians (default) or in degrees.
- Parameters
-
latitude | Latitude coordinate. |
longitude | Longitude coordinate. |
altitude | Altitude coordinate. |
in_radian | Should the output be expressed in radians or degrees. |
◆ setCoordinates()
void setCoordinates |
( |
double |
latitude, |
|
|
double |
longitude, |
|
|
double |
altitude, |
|
|
bool |
in_radian = true |
|
) |
| |
Set the coordinates in radians (default) or in degrees.
- Parameters
-
latitude | Latitude coordinate. |
longitude | Longitude coordinate. |
altitude | Altitude coordinate. |
in_radian | Is input are in radians or in degrees. |
◆ getLatitude()
double getLatitude |
( |
bool |
in_radian = true | ) |
const |
Get the latitude coordinate.
- Parameters
-
in_radian | Is the output should be in radian or degree. |
- Returns
- Latitude in radian or in degree depending in_radian parameter.
◆ getLongitude()
double getLongitude |
( |
bool |
in_radian = true | ) |
const |
Get the longitude coordinate.
- Parameters
-
in_radian | is the output should be in radian or degree. |
- Returns
- Longitude in radian or in degree depending in_radian parameter.
◆ getAltitude()
double getAltitude |
( |
| ) |
const |
Get the altitude coordinate.
- Returns
- Altitude coordinate in meters.
◆ latitude
◆ longitude
◆ altitude