20 , _e2m(
Math::sq(1 - _f))
39 real sphi, cphi, slam, clam;
43 Z = (
_e2m * n +
h) * sphi;
56 slam = R != 0 ? Y /
R : 0,
57 clam = R != 0 ? X /
R : 1;
68 slam = R != 0 ? (Y/2) / R : 0;
69 clam = R != 0 ? (X/2) / R : 1;
73 }
else if (
_e4a == 0) {
78 sphi = (h == 0 ? 1 :
Z) / H;
87 r = (p +
q -
_e4a) / 6;
89 if ( !(
_e4a *
q == 0 && r <= 0) ) {
96 disc = S * (2 *
r3 +
S);
103 T3 += T3 < 0 ? -
sqrt(disc) :
sqrt(disc);
107 u += T + (T != 0 ? r2 /
T : 0);
113 u += 2 * r *
cos(ang / 3);
119 uv = u < 0 ?
_e4a * q / (v - u) : u + v,
125 k1 =
_f >= 0 ? k : k -
_e2,
126 k2 =
_f >= 0 ? k +
_e2 : k,
145 if (Z < 0) sphi = -sphi;
165 M[0] = -slam;
M[3] = clam;
M[6] = 0;
167 M[1] = -clam * sphi;
M[4] = -slam * sphi;
M[7] = cphi;
169 M[2] = clam * cphi;
M[5] = slam * cphi;
M[8] = sphi;
Matrix< RealScalar, Dynamic, Dynamic > M
Jet< T, N > cos(const Jet< T, N > &f)
static const Pose3 T3(Rot3::Rodrigues(-90, 0, 0), Point3(1, 2, 3))
void IntReverse(real X, real Y, real Z, real &lat, real &lon, real &h, real M[dim2_]) const
static bool isfinite(T x)
Rot2 R(Rot2::fromAngle(0.1))
Mathematical functions needed by GeographicLib.
static void sincosd(T x, T &sinx, T &cosx)
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 y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange [*:*] noreverse nowriteback set trange [*:*] noreverse nowriteback set urange [*:*] noreverse nowriteback set vrange [*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
int EIGEN_BLAS_FUNC() swap(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
static const Geocentric & WGS84()
Array< int, Dynamic, 1 > v
static T atan2d(T y, T x)
Eigen::Triplet< double > T
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Namespace for GeographicLib.
void IntForward(real lat, real lon, real h, real &X, real &Y, real &Z, real M[dim2_]) const
EIGEN_DEVICE_FUNC const Scalar & q
Header for GeographicLib::Geocentric class.
AnnoyingScalar atan2(const AnnoyingScalar &y, const AnnoyingScalar &x)
static const size_t dim2_
Exception handling for GeographicLib.
static void Rotation(real sphi, real cphi, real slam, real clam, real M[dim2_])
Jet< T, N > sqrt(const Jet< T, N > &f)