COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
3 element geodetic vector More...
#include <vector.h>
Public Member Functions | |
gvector () | |
gvector (double tlat, double tlon, double th) | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
double | lat = 0. |
Latitude in radians. More... | |
double | lon = 0. |
Longitude in radians. More... | |
double | h = 0. |
Height in meters. More... | |
3 element geodetic vector
3 double precision numbers representing a vector in a WGS84 based geodetic space. Longitude increases east.
|
inline |
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
s | JSON-formatted string to set class contents to |
double gvector::lat = 0. |
Latitude in radians.
double gvector::lon = 0. |
Longitude in radians.
double gvector::h = 0. |
Height in meters.