World location in geodetic earth coordinates (latitude, longitude, and altitude).
Each of the three coordinate parameters is a scalar. This class is a convenience to save the developer from doing a lot of operations on 1x1 matrices.
wposition1 | ( | double | lat = 0.0 , |
|
double | lng = 0.0 , |
|||
double | alt = 0.0 | |||
) |
Constructs an individual position.
lat | Initial latitude (degrees). | |
lng | Initial longitude (degrees). | |
alt | Initial altitude (meters). |
wposition1 | ( | const wposition1 & | location, | |
double | range, | |||
double | bearing | |||
) |
Constructs a position on the Earth's surface using the great circle range and bearing from a point.
location | Location of the reference point. | |
range | Distance to the new point along the Earth's surface (meters). | |
bearing | True bearing to the new point (radians). |
wposition1 | ( | const wvector1 & | other | ) |
Constructs a new position as a copy of an existing position.
Accepts either an actual wposition, or one of its superclasses.
other | wposition1 to be copied. |
wposition1 | ( | const wvector & | other, | |
size_t | row, | |||
size_t | col | |||
) |
Copy one element from a matrix of world vectors.
void altitude | ( | double | altitude | ) | [inline] |
Defines the altitude above the mean sea level.
Acts as a convenient transformation of the "Rho" property.
altitude | Altitude in meters. |
double altitude | ( | ) | const [inline] |
Retrieves the altitude above the mean sea level.
Acts as a convenient transformation of the "Rho" property.
double gc_range | ( | const wposition1 & | location, | |
double * | bearing = NULL | |||
) | const |
Computes the great circle range and bearing between two latitude/longtiude positions along the Earth's surface.
location | Location of the reference point. | |
bearing | True bearing to the new point (radians, optional). |
void latitude | ( | double | latitude | ) | [inline] |
Defines the latitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Theta" property.
latitude | Latitude component in degrees. |
double latitude | ( | ) | const [inline] |
Retrieves the latitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Theta" property.
void longitude | ( | double | longitude | ) | [inline] |
Defines the longitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Phi" property.
longitude | Longitude component in degrees. |
double longitude | ( | ) | const [inline] |
Retrieves the longitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Phi" property.