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)) 84 static const int numit_ = 5;
85 real _a, _f, _k0, _e2, _es, _e2m, _c, _n;
87 real _a1, _b1, _alp[maxpow_ + 1], _bet[maxpow_ + 1];
119 void Forward(real lon0, real lat, real lon,
120 real& x, real& y, real& gamma, real& k)
const;
137 void Reverse(real lon0, real x, real y,
138 real& lat, real& lon, real& gamma, real& k)
const;
144 real& x, real& y)
const {
146 Forward(lon0, lat, lon, x, y, gamma, k);
153 real& lat, real& lon)
const {
155 Reverse(lon0, x, y, lat, lon, gamma, k);
178 Math::real InverseFlattening()
const {
return 1/_f; }
198 #endif // GEOGRAPHICLIB_TRANSVERSEMERCATOR_HPP
Math::real CentralScale() const
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Transverse Mercator projection.
void Forward(real lon0, real lat, real lon, real &x, real &y) const
Namespace for GeographicLib.
#define GEOGRAPHICLIB_TRANSVERSEMERCATOR_ORDER
Properties of an ellipsoid.
Header for GeographicLib::Constants class.
Math::real MajorRadius() const
void Reverse(real lon0, real x, real y, real &lat, real &lon) const
Math::real Flattening() const