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)
#define GEOGRAPHICLIB_EXPORT
real Datanhee(real x, real y) const
real atanhee(real x) const
Math::real CentralScale() const
Albers equal area conic projection.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Namespace for GeographicLib.
void Forward(real lon0, real lat, real lon, real &x, real &y) const
AnnoyingScalar atan2(const AnnoyingScalar &y, const AnnoyingScalar &x)
Properties of an ellipsoid.
Header for GeographicLib::Constants class.
void Reverse(real lon0, real x, real y, real &lat, real &lon) const
Math::real MajorRadius() const
Math::real Flattening() 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
Math::real OriginLatitude() const