18 : stol_(
real(0.01) * sqrt(numeric_limits<
real>::epsilon()))
23 , _e12(_e2 / (1 - _e2))
26 , _rm(_aux.RectifyingRadius(true))
27 , _c2(_aux.AuthalicRadiusSquared(true))
32 static const Ellipsoid wgs84(Constants::WGS84_a(), Constants::WGS84_f());
37 {
return Math::pi()/2 * _rm; }
40 {
return 4 * Math::pi() * _c2; }
42 Math::real Ellipsoid::ParametricLatitude(real phi)
const {
43 return _aux.Convert(AuxLatitude::PHI, AuxLatitude::BETA,
44 Math::LatFix(phi),
true);
47 Math::real Ellipsoid::InverseParametricLatitude(real beta)
const {
48 return _aux.Convert(AuxLatitude::BETA, AuxLatitude::PHI,
49 Math::LatFix(beta),
true);
52 Math::real Ellipsoid::GeocentricLatitude(real phi)
const {
53 return _aux.Convert(AuxLatitude::PHI, AuxLatitude::THETA,
54 Math::LatFix(phi),
true);
57 Math::real Ellipsoid::InverseGeocentricLatitude(real theta)
const {
58 return _aux.Convert(AuxLatitude::THETA, AuxLatitude::PHI,
59 Math::LatFix(theta),
true);
62 Math::real Ellipsoid::RectifyingLatitude(real phi)
const {
63 return _aux.Convert(AuxLatitude::PHI, AuxLatitude::MU,
64 Math::LatFix(phi),
true);
67 Math::real Ellipsoid::InverseRectifyingLatitude(real mu)
const {
68 return _aux.Convert(AuxLatitude::MU, AuxLatitude::PHI,
69 Math::LatFix(mu),
true);
73 return _aux.Convert(AuxLatitude::PHI, AuxLatitude::XI,
74 Math::LatFix(phi),
true);
77 Math::real Ellipsoid::InverseAuthalicLatitude(real xi)
const {
78 return _aux.Convert(AuxLatitude::XI, AuxLatitude::PHI,
79 Math::LatFix(xi),
true);
82 Math::real Ellipsoid::ConformalLatitude(real phi)
const {
83 return _aux.Convert(AuxLatitude::PHI, AuxLatitude::CHI,
84 Math::LatFix(phi),
true);
87 Math::real Ellipsoid::InverseConformalLatitude(real chi)
const {
88 return _aux.Convert(AuxLatitude::CHI, AuxLatitude::PHI,
89 Math::LatFix(chi),
true);
92 Math::real Ellipsoid::IsometricLatitude(real phi)
const {
93 return _aux.Convert(AuxLatitude::PHI, AuxLatitude::CHI,
94 AuxAngle::degrees(Math::LatFix(phi)),
true).lamd();
97 Math::real Ellipsoid::InverseIsometricLatitude(real psi)
const {
98 return _aux.Convert(AuxLatitude::CHI, AuxLatitude::PHI,
99 AuxAngle::lamd(psi),
true).degrees();
104 AuxAngle beta(_aux.Convert(AuxLatitude::PHI, AuxLatitude::BETA,
105 AuxAngle::degrees(Math::LatFix(phi)),
107 return _a * beta.
x();
112 AuxAngle beta(_aux.Convert(AuxLatitude::PHI, AuxLatitude::BETA,
113 AuxAngle::degrees(Math::LatFix(phi)),
115 return _b * beta.
y();
119 return _rm * _aux.Convert(AuxLatitude::PHI, AuxLatitude::MU,
120 AuxAngle::degrees(Math::LatFix(phi)),
124 Math::real Ellipsoid::MeridionalCurvatureRadius(real phi)
const {
125 real v = 1 - _e2 * Math::sq(Math::sind(Math::LatFix(phi)));
126 return _a * (1 - _e2) / (v * sqrt(v));
129 Math::real Ellipsoid::TransverseCurvatureRadius(real phi)
const {
130 real v = 1 - _e2 * Math::sq(Math::sind(Math::LatFix(phi)));
134 Math::real Ellipsoid::NormalCurvatureRadius(real phi, real azi)
const {
136 v = 1 - _e2 * Math::sq(Math::sind(Math::LatFix(phi)));
137 Math::sincosd(azi, salp, calp);
138 return _a / (sqrt(v) * (Math::sq(calp) * v / (1 - _e2) + Math::sq(salp)));
Header for GeographicLib::Ellipsoid class.
GeographicLib::Math::real real
An accurate representation of angles.
Properties of an ellipsoid.
Ellipsoid(real a, real f)
Namespace for GeographicLib.