10 #if !defined(GEOGRAPHICLIB_TRANSVERSEMERCATOR_HPP)
11 #define GEOGRAPHICLIB_TRANSVERSEMERCATOR_HPP 1
15 #if !defined(GEOGRAPHICLIB_TRANSVERSEMERCATOR_ORDER)
20 # define GEOGRAPHICLIB_TRANSVERSEMERCATOR_ORDER \
21 (GEOGRAPHICLIB_PRECISION == 2 ? 6 : \
22 (GEOGRAPHICLIB_PRECISION == 1 ? 4 : 8))
93 static const int numit_ = 5;
94 real _a, _f, _k0, _e2, _es, _e2m, _c, _n;
96 real _a1, _b1, _alp[maxpow_ + 1], _bet[maxpow_ + 1];
126 void Forward(real lon0, real lat, real lon,
127 real& x, real& y, real& gamma, real& k)
const;
143 void Reverse(real lon0, real x, real y,
144 real& lat, real& lon, real& gamma, real& k)
const;
150 real& x, real& y)
const {
152 Forward(lon0, lat, lon, x, y, gamma, k);
159 real& lat, real& lon)
const {
161 Reverse(lon0, x, y, lat, lon, gamma, k);
184 Math::real InverseFlattening()
const {
return 1/_f; }
204 #endif // GEOGRAPHICLIB_TRANSVERSEMERCATOR_HPP
#define GEOGRAPHICLIB_EXPORT
Math::real Flattening() const
GeographicLib::Math::real real
Transverse Mercator projection.
Math::real MajorRadius() const
void Forward(real lon0, real lat, real lon, real &x, real &y) const
void Reverse(real lon0, real x, real y, real &lat, real &lon) const
Namespace for GeographicLib.
#define GEOGRAPHICLIB_TRANSVERSEMERCATOR_ORDER
Properties of an ellipsoid.
Header for GeographicLib::Constants class.
Math::real CentralScale() const