Stores a geodetic location (latitude, longitude, altitude).
More...
#include <CoordGeodetic.h>
Stores a geodetic location (latitude, longitude, altitude).
Internally the values are stored in radians and kilometres.
CoordGeodetic::CoordGeodetic |
( |
| ) |
|
|
inline |
CoordGeodetic::CoordGeodetic |
( |
double |
lat, |
|
|
double |
lon, |
|
|
double |
alt, |
|
|
bool |
is_radians = false |
|
) |
| |
|
inline |
Constructor
- Parameters
-
[in] | lat | the latitude (degrees by default) |
[in] | lon | the longitude (degrees by default) |
[in] | alt | the altitude in kilometers |
[in] | is_radians | whether the latitude/longitude is in radians |
Copy constructor
- Parameters
-
[in] | geo | object to copy from |
Assignment operator
- Parameters
-
[in] | geo | object to copy from |
std::string CoordGeodetic::ToString |
( |
| ) |
const |
|
inline |
Dump this object to a string
- Returns
- string
double CoordGeodetic::altitude |
double CoordGeodetic::latitude |
latitude in radians (-PI >= latitude < PI)
double CoordGeodetic::longitude |
latitude in radians (-PI/2 >= latitude <= PI/2)
The documentation for this struct was generated from the following file: