Updraft  1.0
Open source glider flight visualisation tool.
GeographicLib::Constants Class Reference

Constants needed by GeographicLib More...

#include <Constants.hpp>

List of all members.

Static Public Member Functions

static Math::real degree () throw ()
 A synonym for Math::degree<real>().
static Math::real arcminute () throw ()
static Math::real arcsecond () throw ()
Ellipsoid parameters
template<typename T >
static T WGS84_a () throw ()
static Math::real WGS84_a () throw ()
 A synonym for WGS84_a<real>().
template<typename T >
static T WGS84_f () throw ()
static Math::real WGS84_f () throw ()
 A synonym for WGS84_f<real>().
template<typename T >
static T WGS84_GM () throw ()
template<typename T >
static T WGS84_omega () throw ()
static Math::real WGS84_r () throw ()
template<typename T >
static T GRS80_a () throw ()
template<typename T >
static T GRS80_GM () throw ()
template<typename T >
static T GRS80_omega () throw ()
template<typename T >
static T GRS80_J2 () throw ()
template<typename T >
static T UTM_k0 () throw ()
static Math::real UTM_k0 () throw ()
 A synonym for UTM_k0<real>().
template<typename T >
static T UPS_k0 () throw ()
static Math::real UPS_k0 () throw ()
 A synonym for UPS_k0<real>().
SI units
template<typename T >
static T meter () throw ()
static Math::real meter () throw ()
 A synonym for meter<real>().
static Math::real kilometer () throw ()
static Math::real nauticalmile () throw ()
template<typename T >
static T square_meter () throw ()
static Math::real square_meter () throw ()
 A synonym for square_meter<real>().
static Math::real hectare () throw ()
static Math::real square_kilometer () throw ()
static Math::real square_nauticalmile () throw ()
Anachronistic British units
static Math::real foot () throw ()
static Math::real yard () throw ()
static Math::real fathom () throw ()
static Math::real chain () throw ()
static Math::real furlong () throw ()
static Math::real mile () throw ()
static Math::real acre () throw ()
static Math::real square_mile () throw ()
Anachronistic US units
static Math::real surveyfoot () throw ()

Private Types

typedef Math::real real

Private Member Functions

 Constants ()

Detailed Description

Constants needed by GeographicLib

Define constants specifying the WGS84 ellipsoid, the UTM and UPS projections, and various unit conversions.

Example of use:


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

static Math::real GeographicLib::Constants::acre ( ) throw () [inline, static]
Returns:
the number of square meters in an acre.
static Math::real GeographicLib::Constants::arcminute ( ) throw () [inline, static]
Returns:
the number of radians in an arcminute.
static Math::real GeographicLib::Constants::arcsecond ( ) throw () [inline, static]
Returns:
the number of radians in an arcsecond.
static Math::real GeographicLib::Constants::chain ( ) throw () [inline, static]
Returns:
the number of meters in a chain.
static Math::real GeographicLib::Constants::degree ( ) throw () [inline, static]

A synonym for Math::degree<real>().

static Math::real GeographicLib::Constants::fathom ( ) throw () [inline, static]
Returns:
the number of meters in a fathom.
static Math::real GeographicLib::Constants::foot ( ) throw () [inline, static]
Returns:
the number of meters in an international foot.
static Math::real GeographicLib::Constants::furlong ( ) throw () [inline, static]
Returns:
the number of meters in a furlong.
template<typename T >
static T GeographicLib::Constants::GRS80_a ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the equatorial radius of GRS80 ellipsoid, a, in m.
template<typename T >
static T GeographicLib::Constants::GRS80_GM ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the gravitational constant of the GRS80 ellipsoid, GM, in m3 s-2.
template<typename T >
static T GeographicLib::Constants::GRS80_J2 ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the dynamical form factor of the GRS80 ellipsoid, J2.
template<typename T >
static T GeographicLib::Constants::GRS80_omega ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the angular velocity of the the GRS80 ellipsoid, omega, in rad s-1.

This is about 2*pi*366.25 / (365.25*24*3600) rad s-1. 365.25 is the number of days in a Julian year and 365.35/366.25 converts from solar days to sidereal days. Using the number of days in a Gregorian year (365.2425) results in a worse approximation (because the Gregorian year includes the precession of the earth's axis).

static Math::real GeographicLib::Constants::hectare ( ) throw () [inline, static]
Returns:
the number of square meters in a hectare.
static Math::real GeographicLib::Constants::kilometer ( ) throw () [inline, static]
Returns:
the number of meters in a kilometer.
template<typename T >
static T GeographicLib::Constants::meter ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the number of meters in a meter.

This is unity, but this lets the internal system of units be changed if necessary.

static Math::real GeographicLib::Constants::meter ( ) throw () [inline, static]

A synonym for meter<real>().

static Math::real GeographicLib::Constants::mile ( ) throw () [inline, static]
Returns:
the number of meters in a statute mile.
static Math::real GeographicLib::Constants::nauticalmile ( ) throw () [inline, static]
Returns:
the number of meters in a nautical mile (approximately 1 arc minute)
static Math::real GeographicLib::Constants::square_kilometer ( ) throw () [inline, static]
Returns:
the number of square meters in a square kilometer.
template<typename T >
static T GeographicLib::Constants::square_meter ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the number of square meters in a square meter.

This is unity, but this lets the internal system of units be changed if necessary.

static Math::real GeographicLib::Constants::square_meter ( ) throw () [inline, static]

A synonym for square_meter<real>().

static Math::real GeographicLib::Constants::square_mile ( ) throw () [inline, static]
Returns:
the number of square meters in a square statute mile.
static Math::real GeographicLib::Constants::square_nauticalmile ( ) throw () [inline, static]
Returns:
the number of square meters in a square nautical mile.
static Math::real GeographicLib::Constants::surveyfoot ( ) throw () [inline, static]
Returns:
the number of meters in a US survey foot.
template<typename T >
static T GeographicLib::Constants::UPS_k0 ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the central scale factor for UPS (0.994).
static Math::real GeographicLib::Constants::UPS_k0 ( ) throw () [inline, static]

A synonym for UPS_k0<real>().

template<typename T >
static T GeographicLib::Constants::UTM_k0 ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the central scale factor for UTM (0.9996).
static Math::real GeographicLib::Constants::UTM_k0 ( ) throw () [inline, static]

A synonym for UTM_k0<real>().

template<typename T >
static T GeographicLib::Constants::WGS84_a ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the equatorial radius of WGS84 ellipsoid (6378137 m).
static Math::real GeographicLib::Constants::WGS84_a ( ) throw () [inline, static]

A synonym for WGS84_a<real>().

template<typename T >
static T GeographicLib::Constants::WGS84_f ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the flattening of WGS84 ellipsoid (1/298.257223563).
static Math::real GeographicLib::Constants::WGS84_f ( ) throw () [inline, static]

A synonym for WGS84_f<real>().

template<typename T >
static T GeographicLib::Constants::WGS84_GM ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the gravitational constant of the WGS84 ellipsoid, GM, in m3 s-2.
template<typename T >
static T GeographicLib::Constants::WGS84_omega ( ) throw () [inline, static]
Template Parameters:
Tthe type of the returned value.
Returns:
the angular velocity of the the WGS84 ellipsoid, omega, in rad s-1.
static Math::real GeographicLib::Constants::WGS84_r ( ) throw () [inline, static]
static Math::real GeographicLib::Constants::yard ( ) throw () [inline, static]
Returns:
the number of meters in a yard.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines