gtsam
3rdparty
GeographicLib
wrapper
C
cgeoid.cpp
Go to the documentation of this file.
1
#include "
cgeoid.h
"
2
#include "
GeographicLib/Geoid.hpp
"
3
4
extern
"C"
5
double
HeightAboveEllipsoid
(
double
lat
,
double
lon
,
double
h
) {
6
try
{
7
// Declare static so that g is only constructed once
8
static
const
GeographicLib::Geoid
g
(
"egm2008-1"
);
9
return
h
+
GeographicLib::Geoid::GEOIDTOELLIPSOID
*
g
(
lat
,
lon
);
10
}
11
catch
(...) {
12
return
GeographicLib::Math::NaN
();
13
}
14
}
GeographicLib::Math::NaN
static T NaN()
Definition:
Math.hpp:830
HeightAboveEllipsoid
double HeightAboveEllipsoid(double lat, double lon, double h)
Definition:
cgeoid.cpp:5
h
const double h
Definition:
testSimpleHelicopter.cpp:19
GeographicLib::Geoid::GEOIDTOELLIPSOID
@ GEOIDTOELLIPSOID
Definition:
Geoid.hpp:196
Geoid.hpp
Header for GeographicLib::Geoid class.
GeographicLib::Geoid
Looking up the height of the geoid above the ellipsoid.
Definition:
Geoid.hpp:82
g
void g(const string &key, int i)
Definition:
testBTree.cpp:41
cgeoid.h
lon
static const double lon
Definition:
testGeographicLib.cpp:34
lat
static const double lat
Definition:
testGeographicLib.cpp:34
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:58