src/AzimuthalEquidistant.cpp
Go to the documentation of this file.
1 
11 
12 namespace GeographicLib {
13 
14  using namespace std;
15 
17  : eps_(real(0.01) * sqrt(numeric_limits<real>::min()))
18  , _earth(earth) {}
19 
21  real& x, real& y,
22  real& azi, real& rk) const {
23  real sig, s, azi0, m;
24  sig = _earth.Inverse(lat0, lon0, lat, lon, s, azi0, azi, m);
25  Math::sincosd(azi0, x, y);
26  x *= s; y *= s;
27  rk = !(sig <= eps_) ? m / s : 1;
28  }
29 
31  real& lat, real& lon,
32  real& azi, real& rk) const {
33  real
34  azi0 = Math::atan2d(x, y),
35  s = Math::hypot(x, y);
36  real sig, m;
37  sig = _earth.Direct(lat0, lon0, azi0, s, lat, lon, azi, m);
38  rk = !(sig <= eps_) ? m / s : 1;
39  }
40 
41 } // namespace GeographicLib
GeographicLib::AzimuthalEquidistant::Forward
void Forward(real lat0, real lon0, real lat, real lon, real &x, real &y, real &azi, real &rk) const
Definition: src/AzimuthalEquidistant.cpp:20
s
RealScalar s
Definition: level1_cplx_impl.h:126
GeographicLib
Namespace for GeographicLib.
Definition: JacobiConformal.hpp:15
x
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
Definition: gnuplot_common_settings.hh:12
GeographicLib::Math::atan2d
static T atan2d(T y, T x)
Definition: Math.hpp:691
GeographicLib::Geodesic::Inverse
Math::real Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi1, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Definition: Geodesic.hpp:674
GeographicLib::Math::sincosd
static void sincosd(T x, T &sinx, T &cosx)
Definition: Math.hpp:558
GeographicLib::Geodesic::Direct
Math::real Direct(real lat1, real lon1, real azi1, real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Definition: Geodesic.hpp:379
AzimuthalEquidistant.hpp
Header for GeographicLib::AzimuthalEquidistant class.
example::lat0
const double lat0
Definition: testGPSFactor.cpp:41
example::lon0
const double lon0
Definition: testGPSFactor.cpp:41
GeographicLib::AzimuthalEquidistant::_earth
Geodesic _earth
Definition: AzimuthalEquidistant.hpp:46
GeographicLib::AzimuthalEquidistant::AzimuthalEquidistant
AzimuthalEquidistant(const Geodesic &earth=Geodesic::WGS84())
Definition: src/AzimuthalEquidistant.cpp:16
m
Matrix3f m
Definition: AngleAxis_mimic_euler.cpp:1
y
Scalar * y
Definition: level1_cplx_impl.h:124
GeographicLib::AzimuthalEquidistant::Reverse
void Reverse(real lat0, real lon0, real x, real y, real &lat, real &lon, real &azi, real &rk) const
Definition: src/AzimuthalEquidistant.cpp:30
GeographicLib::AzimuthalEquidistant::eps_
real eps_
Definition: AzimuthalEquidistant.hpp:45
std
Definition: BFloat16.h:88
min
#define min(a, b)
Definition: datatypes.h:19
lon
static const double lon
Definition: testGeographicLib.cpp:34
GeographicLib::Math::hypot
static T hypot(T x, T y)
Definition: Math.hpp:243
real
Definition: main.h:100
ceres::sqrt
Jet< T, N > sqrt(const Jet< T, N > &f)
Definition: jet.h:418
GeographicLib::Geodesic
Geodesic calculations
Definition: Geodesic.hpp:172
lat
static const double lat
Definition: testGeographicLib.cpp:34


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:53