|
GeographicLib
1.41
|
Constants needed by GeographicLib More...
#include <GeographicLib/Constants.hpp>
Static Public Member Functions | |
| static Math::real | degree () |
| static Math::real | arcminute () |
| static Math::real | arcsecond () |
Ellipsoid parameters | |
| template<typename T > | |
| static T | WGS84_a () |
| static Math::real | WGS84_a () |
| template<typename T > | |
| static T | WGS84_f () |
| static Math::real | WGS84_f () |
| template<typename T > | |
| static T | WGS84_GM () |
| static Math::real | WGS84_GM () |
| template<typename T > | |
| static T | WGS84_omega () |
| static Math::real | WGS84_omega () |
| template<typename T > | |
| static T | GRS80_a () |
| static Math::real | GRS80_a () |
| template<typename T > | |
| static T | GRS80_GM () |
| static Math::real | GRS80_GM () |
| template<typename T > | |
| static T | GRS80_omega () |
| static Math::real | GRS80_omega () |
| template<typename T > | |
| static T | GRS80_J2 () |
| static Math::real | GRS80_J2 () |
| template<typename T > | |
| static T | UTM_k0 () |
| static Math::real | UTM_k0 () |
| template<typename T > | |
| static T | UPS_k0 () |
| static Math::real | UPS_k0 () |
SI units | |
| template<typename T > | |
| static T | meter () |
| static Math::real | meter () |
| static Math::real | kilometer () |
| static Math::real | nauticalmile () |
| template<typename T > | |
| static T | square_meter () |
| static Math::real | square_meter () |
| static Math::real | hectare () |
| static Math::real | square_kilometer () |
| static Math::real | square_nauticalmile () |
Anachronistic British units | |
| static Math::real | foot () |
| static Math::real | yard () |
| static Math::real | fathom () |
| static Math::real | chain () |
| static Math::real | furlong () |
| static Math::real | mile () |
| static Math::real | acre () |
| static Math::real | square_mile () |
Anachronistic US units | |
| static Math::real | surveyfoot () |
Related Functions | |
(Note that these are not member functions.) | |
| #define | GEOGRAPHICLIB_VERSION_NUM(a, b, c) ((((a) * 10000 + (b)) * 100) + (c)) |
| #define | GEOGRAPHICLIB_VERSION |
| #define | GEOGRAPHICLIB_STATIC_ASSERT(cond, reason) { enum{ GEOGRAPHICLIB_STATIC_ASSERT_ENUM = 1/int(cond) }; } |
Constants needed by GeographicLib
Define constants specifying the WGS84 ellipsoid, the UTM and UPS projections, and various unit conversions.
Example of use:
Definition at line 96 of file Constants.hpp.
|
inlinestatic |
A synonym for Math::degree<real>().
Definition at line 105 of file Constants.hpp.
References GeographicLib::Math::degree().
|
inlinestatic |
Definition at line 109 of file Constants.hpp.
References GeographicLib::Math::degree().
|
inlinestatic |
Definition at line 114 of file Constants.hpp.
References GeographicLib::Math::degree().
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 124 of file Constants.hpp.
Referenced by GeographicLib::AlbersEqualArea::AzimuthalEqualAreaNorth(), GeographicLib::AlbersEqualArea::AzimuthalEqualAreaSouth(), GeographicLib::AlbersEqualArea::CylindricalEqualArea(), main(), GeographicLib::UTMUPS::MajorRadius(), GeographicLib::Geoid::MajorRadius(), GeographicLib::LambertConformalConic::Mercator(), GeographicLib::PolarStereographic::UPS(), GeographicLib::TransverseMercator::UTM(), GeographicLib::TransverseMercatorExact::UTM(), GeographicLib::Geocentric::WGS84(), GeographicLib::NormalGravity::WGS84(), GeographicLib::Rhumb::WGS84(), GeographicLib::Ellipsoid::WGS84(), GeographicLib::GeodesicExact::WGS84(), and GeographicLib::Geodesic::WGS84().
|
inlinestatic |
A synonym for WGS84_a<real>().
Definition at line 129 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 134 of file Constants.hpp.
Referenced by GeographicLib::AlbersEqualArea::AzimuthalEqualAreaNorth(), GeographicLib::AlbersEqualArea::AzimuthalEqualAreaSouth(), GeographicLib::AlbersEqualArea::CylindricalEqualArea(), GeographicLib::UTMUPS::Flattening(), GeographicLib::Geoid::Flattening(), main(), GeographicLib::LambertConformalConic::Mercator(), GeographicLib::PolarStereographic::UPS(), GeographicLib::TransverseMercator::UTM(), GeographicLib::TransverseMercatorExact::UTM(), GeographicLib::Geocentric::WGS84(), GeographicLib::NormalGravity::WGS84(), GeographicLib::Rhumb::WGS84(), GeographicLib::Ellipsoid::WGS84(), GeographicLib::GeodesicExact::WGS84(), and GeographicLib::Geodesic::WGS84().
|
inlinestatic |
A synonym for WGS84_f<real>().
Definition at line 139 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 145 of file Constants.hpp.
Referenced by GeographicLib::NormalGravity::WGS84().
|
inlinestatic |
A synonym for WGS84_GM<real>().
Definition at line 150 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 156 of file Constants.hpp.
Referenced by GeographicLib::NormalGravity::WGS84().
|
inlinestatic |
A synonym for WGS84_omega<real>().
Definition at line 161 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 179 of file Constants.hpp.
Referenced by GeographicLib::NormalGravity::GRS80().
|
inlinestatic |
A synonym for GRS80_a<real>().
Definition at line 184 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 190 of file Constants.hpp.
Referenced by GeographicLib::NormalGravity::GRS80().
|
inlinestatic |
A synonym for GRS80_GM<real>().
Definition at line 195 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
This is about 2 π 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).
Definition at line 208 of file Constants.hpp.
Referenced by GeographicLib::NormalGravity::GRS80().
|
inlinestatic |
A synonym for GRS80_omega<real>().
Definition at line 213 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 219 of file Constants.hpp.
Referenced by GeographicLib::NormalGravity::GRS80().
|
inlinestatic |
A synonym for GRS80_J2<real>().
Definition at line 224 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 229 of file Constants.hpp.
Referenced by main(), GeographicLib::TransverseMercator::UTM(), and GeographicLib::TransverseMercatorExact::UTM().
|
inlinestatic |
A synonym for UTM_k0<real>().
Definition at line 234 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
Definition at line 239 of file Constants.hpp.
Referenced by GeographicLib::PolarStereographic::UPS().
|
inlinestatic |
A synonym for UPS_k0<real>().
Definition at line 244 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
This is unity, but this lets the internal system of units be changed if necessary.
Definition at line 257 of file Constants.hpp.
|
inlinestatic |
A synonym for meter<real>().
Definition at line 261 of file Constants.hpp.
|
inlinestatic |
Definition at line 265 of file Constants.hpp.
|
inlinestatic |
Definition at line 271 of file Constants.hpp.
|
inlinestatic |
| T | the type of the returned value. |
This is unity, but this lets the internal system of units be changed if necessary.
Definition at line 281 of file Constants.hpp.
|
inlinestatic |
A synonym for square_meter<real>().
Definition at line 286 of file Constants.hpp.
|
inlinestatic |
Definition at line 291 of file Constants.hpp.
|
inlinestatic |
Definition at line 296 of file Constants.hpp.
|
inlinestatic |
Definition at line 301 of file Constants.hpp.
|
inlinestatic |
Definition at line 311 of file Constants.hpp.
|
inlinestatic |
Definition at line 316 of file Constants.hpp.
|
inlinestatic |
Definition at line 320 of file Constants.hpp.
|
inlinestatic |
Definition at line 324 of file Constants.hpp.
|
inlinestatic |
Definition at line 328 of file Constants.hpp.
|
inlinestatic |
Definition at line 332 of file Constants.hpp.
|
inlinestatic |
Definition at line 336 of file Constants.hpp.
|
inlinestatic |
Definition at line 340 of file Constants.hpp.
|
inlinestatic |
Definition at line 349 of file Constants.hpp.
|
related |
Pack the version components into a single integer.
Definition at line 19 of file Constants.hpp.
|
related |
The version of GeographicLib as a single integer, packed as MMmmmmpp where MM is the major version, mmmm is the minor version, and pp is the patch level.
Definition at line 27 of file Constants.hpp.
|
related |
A compile-time assert. Use C++11 static_assert, if available.
Definition at line 56 of file Constants.hpp.
1.8.8