10 #if !defined(GEOGRAPHICLIB_LOCALCARTESIAN_HPP) 11 #define GEOGRAPHICLIB_LOCALCARTESIAN_HPP 1 41 static const size_t dim_ = 3;
42 static const size_t dim2_ = dim_ * dim_;
45 real _x0, _y0,
_z0, _r[dim2_];
46 void IntForward(real
lat, real
lon, real
h, real&
x, real&
y, real&
z,
48 void IntReverse(real
x, real
y, real
z, real&
lat, real&
lon, real&
h,
50 void MatrixMultiply(real
M[dim2_])
const;
67 { Reset(lat0, lon0,
h0); }
90 void Reset(real lat0, real lon0, real
h0 = 0);
106 IntForward(lat, lon, h, x, y, z,
NULL);
136 std::vector<real>&
M)
138 if (M.end() == M.begin() + dim2_) {
140 IntForward(lat, lon, h, x, y, z, t);
141 std::copy(t, t + dim2_, M.begin());
143 IntForward(lat, lon, h, x, y, z,
NULL);
161 IntReverse(x, y, z, lat, lon, h,
NULL);
190 std::vector<real>&
M)
192 if (M.end() == M.begin() + dim2_) {
194 IntReverse(x, y, z, lat, lon, h, t);
195 std::copy(t, t + dim2_, M.begin());
197 IntReverse(x, y, z, lat, lon, h,
NULL);
236 #endif // GEOGRAPHICLIB_LOCALCARTESIAN_HPP
LocalCartesian(real lat0, real lon0, real h0=0, const Geocentric &earth=Geocentric::WGS84())
Matrix< RealScalar, Dynamic, Dynamic > M
#define GEOGRAPHICLIB_EXPORT
Math::real Flattening() const
void Reverse(real x, real y, real z, real &lat, real &lon, real &h) const
static const Geocentric & WGS84()
Math::real LongitudeOrigin() const
Namespace for GeographicLib.
Math::real Flattening() const
LocalCartesian(const Geocentric &earth=Geocentric::WGS84())
Math::real MajorRadius() const
Math::real MajorRadius() const
Header for GeographicLib::Geocentric class.
Math::real HeightOrigin() const
Local cartesian coordinates.
void Forward(real lat, real lon, real h, real &x, real &y, real &z, std::vector< real > &M) const
Header for GeographicLib::Constants class.
void Forward(real lat, real lon, real h, real &x, real &y, real &z) const
Math::real LatitudeOrigin() 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
void Reverse(real x, real y, real z, real &lat, real &lon, real &h, std::vector< real > &M) const