Gnomonic.hpp
Go to the documentation of this file.
1 
10 #if !defined(GEOGRAPHICLIB_GNOMONIC_HPP)
11 #define GEOGRAPHICLIB_GNOMONIC_HPP 1
12 
16 
17 namespace GeographicLib {
18 
103  private:
104  typedef Math::real real;
105  real eps0_, eps_;
107  real _a, _f;
108  static const int numit_ = 10;
109  public:
110 
117  explicit Gnomonic(const Geodesic& earth = Geodesic::WGS84());
118 
140  void Forward(real lat0, real lon0, real lat, real lon,
141  real& x, real& y, real& azi, real& rk) const;
142 
166  void Reverse(real lat0, real lon0, real x, real y,
167  real& lat, real& lon, real& azi, real& rk) const;
168 
172  void Forward(real lat0, real lon0, real lat, real lon,
173  real& x, real& y) const {
174  real azi, rk;
175  Forward(lat0, lon0, lat, lon, x, y, azi, rk);
176  }
177 
181  void Reverse(real lat0, real lon0, real x, real y,
182  real& lat, real& lon) const {
183  real azi, rk;
184  Reverse(lat0, lon0, x, y, lat, lon, azi, rk);
185  }
186 
189 
194  Math::real MajorRadius() const { return _earth.MajorRadius(); }
195 
200  Math::real Flattening() const { return _earth.Flattening(); }
202 
203  };
204 
205 } // namespace GeographicLib
206 
207 #endif // GEOGRAPHICLIB_GNOMONIC_HPP
Header for GeographicLib::GeodesicLine class.
#define GEOGRAPHICLIB_EXPORT
Definition: Constants.hpp:91
Scalar * y
static const double lat
static const Geodesic & WGS84()
Gnomonic projection
Definition: Gnomonic.hpp:102
Math::real MajorRadius() const
Definition: Geodesic.hpp:943
void Reverse(real lat0, real lon0, real x, real y, real &lat, real &lon) const
Definition: Gnomonic.hpp:181
Header for GeographicLib::Geodesic class.
const double lat0
void Forward(real lat0, real lon0, real lat, real lon, real &x, real &y) const
Definition: Gnomonic.hpp:172
Namespace for GeographicLib.
const double lon0
Math::real Flattening() const
Definition: Gnomonic.hpp:200
Header for GeographicLib::Constants class.
Math::real MajorRadius() const
Definition: Gnomonic.hpp:194
static const double lon
Math::real Flattening() const
Definition: Geodesic.hpp:949
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
Geodesic calculations
Definition: Geodesic.hpp:172


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:09