wposition1 Class Reference
[World Coordinates]

Collaboration diagram for wposition1:
Collaboration graph
[legend]

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:
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.

References:
E. Williams, "Aviation Formulary V1.43", http://williams.best.vwh.net/avform.htm , July 2010.
Parameters:
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.

Parameters:
other wposition1 to be copied.
wposition1 ( const wvector other,
size_t  row,
size_t  col 
)

Copy one element from a matrix of world vectors.


Member Function Documentation

void altitude ( double  altitude  )  [inline]

Defines the altitude above the mean sea level.

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

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

Returns:
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.

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

Defines the latitude component of geodetic earth coordinates.

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

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

Returns:
Latitude 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:
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.

Returns:
Longitude component in degrees.

Generated on 4 May 2015 for USML by  doxygen 1.6.1