10 #if !defined(GEOGRAPHICLIB_ALBERSEQUALAREA_HPP) 11 #define GEOGRAPHICLIB_ALBERSEQUALAREA_HPP 1 63 real eps_, epsx_, epsx2_,
tol_, tol0_;
64 real _a, _f, _fm, _e2, _e, _e2m,
_qZ, _qx;
66 real _n0, _m02, _nrho0, _k2,
_txi0, _scxi0, _sxi0;
67 static const int numit_ = 5;
68 static const int numit0_ = 20;
80 (_f < 0 ? (
atan2(_e *
abs(x),
real(x < 0 ? -1 : 1))/_e) : x);
83 static real atanhxm1(real
x);
102 static real
Dsn(real x, real
y, real sx, real sy) {
105 return t > 0 ? (x +
y) *
Math::sq( (sx * sy)/
t ) / (sx + sy) :
106 (x - y != 0 ? (sx - sy) / (x - y) : 1);
110 real
t = x -
y,
d = 1 - _e2 * x *
y;
111 return t != 0 ? atanhee(t / d) / t : 1 /
d;
114 real DDatanhee(real x, real
y)
const;
115 void Init(real sphi1, real cphi1, real sphi2, real cphi2, real k1);
116 real txif(real tphi)
const;
117 real tphif(real txi)
const;
178 real sinlat1, real coslat1,
179 real sinlat2, real coslat2,
193 void SetScale(real
lat, real k =
real(1));
214 real& x, real& y, real&
gamma, real& k)
const;
234 void Reverse(real
lon0, real x, real y,
235 real& lat, real&
lon, real&
gamma, real& k)
const;
242 real& x, real& y)
const {
244 Forward(lon0, lat, lon, x, y, gamma, k);
252 real& lat, real&
lon)
const {
254 Reverse(lon0, x, y, lat, lon, gamma, k);
312 #endif // GEOGRAPHICLIB_ALBERSEQUALAREA_HPP
static real Dsn(real x, real y, real sx, real sy)
Math::real CentralScale() const
#define GEOGRAPHICLIB_EXPORT
Math::real MajorRadius() const
void Reverse(real lon0, real x, real y, real &lat, real &lon) const
Albers equal area conic projection.
const mpreal gamma(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Namespace for GeographicLib.
Jet< T, N > atan2(const Jet< T, N > &g, const Jet< T, N > &f)
Math::real Flattening() const
Properties of an ellipsoid.
real Datanhee(real x, real y) const
Header for GeographicLib::Constants class.
Math::real OriginLatitude() const
void Forward(real lon0, real lat, real lon, real &x, real &y) const
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
real atanhee(real x) const