USML
|
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, |
unsigned | row, | ||
unsigned | col | ||
) |
Copy one element from a matrix of world vectors.
|
inline |
Retrieves the altitude above the mean sea level.
Acts as a convenient transformation of the "Rho" property.
|
inline |
Defines the altitude above the mean sea level.
Acts as a convenient transformation of the "Rho" property.
altitude | Altitude in meters. |
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). |
|
inline |
Retrieves the latitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Theta" property.
|
inline |
Defines the latitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Theta" property.
latitude | Latitude component in degrees. |
|
inline |
Retrieves the longitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Phi" property.
|
inline |
Defines the longitude component of geodetic earth coordinates.
Acts as a convenient transformation of the "Phi" property.
longitude | Longitude component in degrees. |