USML
wposition1 Class Reference
Collaboration diagram for wposition1:

Detailed Description

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.

Constructor & Destructor Documentation

wposition1 ( double  lat = 0.0,
double  lng = 0.0,
double  alt = 0.0 
)

Constructs an individual position.

Parameters
latInitial latitude (degrees).
lngInitial longitude (degrees).
altInitial 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.

References:
E. Williams, "Aviation Formulary V1.43", http://williams.best.vwh.net/avform.htm , July 2010.
Parameters
locationLocation of the reference point.
rangeDistance to the new point along the Earth's surface (meters).
bearingTrue 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.

Parameters
otherwposition1 to be copied.
wposition1 ( const wvector other,
unsigned  row,
unsigned  col 
)

Copy one element from a matrix of world vectors.

Member Function Documentation

double altitude ( ) const
inline

Retrieves the altitude above the mean sea level.

Acts as a convenient transformation of the "Rho" property.

Returns
Altitude in meters.
void altitude ( double  altitude)
inline

Defines the altitude above the mean sea level.

Acts as a convenient transformation of the "Rho" property.

Parameters
altitudeAltitude 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.

References:
E. Williams, "Aviation Formulary V1.43", http://williams.best.vwh.net/avform.htm , July 2010.
Parameters
locationLocation of the reference point.
bearingTrue bearing to the new point (radians, optional).
Returns
Distance to the new point along the Earth's surface (meters).
double latitude ( ) const
inline

Retrieves the latitude component of geodetic earth coordinates.

Acts as a convenient transformation of the "Theta" property.

Returns
Latitude component in degrees.
void latitude ( double  latitude)
inline

Defines the latitude component of geodetic earth coordinates.

Acts as a convenient transformation of the "Theta" property.

Parameters
latitudeLatitude component in degrees.
double longitude ( ) const
inline

Retrieves the longitude component of geodetic earth coordinates.

Acts as a convenient transformation of the "Phi" property.

Returns
Longitude component in degrees.
void longitude ( double  longitude)
inline

Defines the longitude component of geodetic earth coordinates.

Acts as a convenient transformation of the "Phi" property.

Parameters
longitudeLongitude component in degrees.