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
lat
static const double lat
Definition:
testGeographicLib.cpp:34
cgeoid.h
g
void g(const string &key, int i)
Definition:
testBTree.cpp:41
GeographicLib::Geoid::GEOIDTOELLIPSOID
Definition:
Geoid.hpp:196
h
const double h
Definition:
testSimpleHelicopter.cpp:19
lon
static const double lon
Definition:
testGeographicLib.cpp:34
HeightAboveEllipsoid
double HeightAboveEllipsoid(double lat, double lon, double h)
Definition:
cgeoid.cpp:5
Geoid.hpp
Header for GeographicLib::Geoid class.
GeographicLib::Geoid
Looking up the height of the geoid above the ellipsoid.
Definition:
Geoid.hpp:82
gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:01