Static Public Member Functions

GeographicLib::Constants Class Reference

Constants needed by GeographicLib More...

#include <GeographicLib/Constants.hpp>

List of all members.

Static Public Member Functions

static Math::real pi () throw ()
static Math::real degree () throw ()
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 ()
template<typename T >
static T WGS84_r () throw ()
static Math::real WGS84_r () throw ()
template<typename T >
static T UTM_k0 () throw ()
static Math::real UTM_k0 () throw ()
template<typename T >
static T UPS_k0 () throw ()
static Math::real UPS_k0 () throw ()
SI units

template<typename T >
static T meter () throw ()
static Math::real meter () throw ()
static Math::real kilometer () throw ()
static Math::real 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 ()
Anachronistic US units

static Math::real surveyfoot () throw ()

Detailed Description

Constants needed by GeographicLib

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

Definition at line 406 of file Constants.hpp.


Member Function Documentation

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

DEPRECATED A synonym for Math::pi<real>().

Definition at line 415 of file Constants.hpp.

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

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

Definition at line 419 of file Constants.hpp.

static Math::real GeographicLib::Constants::arcminute (  )  throw () [inline, static]
Returns:
the number of radians in an arcminute.

Definition at line 423 of file Constants.hpp.

static Math::real GeographicLib::Constants::arcsecond (  )  throw () [inline, static]
Returns:
the number of radians in an arcsecond.

Definition at line 428 of file Constants.hpp.

template<typename T >
static T GeographicLib::Constants::WGS84_a (  )  throw () [inline, static]
Returns:
the equatorial radius of WGS84 ellipsoid

Definition at line 438 of file Constants.hpp.

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

A synonym for WGS84_a<real>().

Definition at line 442 of file Constants.hpp.

template<typename T >
static T GeographicLib::Constants::WGS84_r (  )  throw () [inline, static]
Returns:
the reciprocal flattening of WGS84 ellipsoid

Definition at line 447 of file Constants.hpp.

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

A synonym for WGS84_r<real>().

Definition at line 454 of file Constants.hpp.

template<typename T >
static T GeographicLib::Constants::UTM_k0 (  )  throw () [inline, static]
Returns:
the central scale factor for UTM

Definition at line 459 of file Constants.hpp.

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

A synonym for UTM_k0<real>().

Definition at line 463 of file Constants.hpp.

template<typename T >
static T GeographicLib::Constants::UPS_k0 (  )  throw () [inline, static]
Returns:
the central scale factor for UPS

Definition at line 468 of file Constants.hpp.

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

A synonym for UPS_k0<real>().

Definition at line 472 of file Constants.hpp.

template<typename T >
static T GeographicLib::Constants::meter (  )  throw () [inline, static]
Returns:
the number of meters in a meter.

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

Definition at line 485 of file Constants.hpp.

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

A synonym for meter<real>().

Definition at line 489 of file Constants.hpp.

static Math::real GeographicLib::Constants::kilometer (  )  throw () [inline, static]
Returns:
the number of meters in a kilometer.

Definition at line 493 of file Constants.hpp.

static Math::real GeographicLib::Constants::nauticalmile (  )  throw () [inline, static]
Returns:
the number of meters in a nautical mile (approximately 1 arc minute)

Definition at line 499 of file Constants.hpp.

static Math::real GeographicLib::Constants::foot (  )  throw () [inline, static]
Returns:
the number of meters in an international foot.

Definition at line 509 of file Constants.hpp.

Referenced by yard().

static Math::real GeographicLib::Constants::yard (  )  throw () [inline, static]
Returns:
the number of meters in a yard.

Definition at line 514 of file Constants.hpp.

References foot().

Referenced by chain(), and fathom().

static Math::real GeographicLib::Constants::fathom (  )  throw () [inline, static]
Returns:
the number of meters in a fathom.

Definition at line 518 of file Constants.hpp.

References yard().

static Math::real GeographicLib::Constants::chain (  )  throw () [inline, static]
Returns:
the number of meters in a chain.

Definition at line 522 of file Constants.hpp.

References yard().

Referenced by furlong().

static Math::real GeographicLib::Constants::furlong (  )  throw () [inline, static]
Returns:
the number of meters in a furlong.

Definition at line 526 of file Constants.hpp.

References chain().

Referenced by mile().

static Math::real GeographicLib::Constants::mile (  )  throw () [inline, static]
Returns:
the number of meters in a statute mile.

Definition at line 530 of file Constants.hpp.

References furlong().

static Math::real GeographicLib::Constants::surveyfoot (  )  throw () [inline, static]
Returns:
the number of meters in a US survey foot.

Definition at line 539 of file Constants.hpp.


The documentation for this class was generated from the following file: