gtsam
3rdparty
GeographicLib
examples
example-Constants.cpp
Go to the documentation of this file.
1
// Example of using the GeographicLib::Constants class
2
3
#include <iostream>
4
#include <exception>
5
#include <
GeographicLib/Constants.hpp
>
6
7
using namespace
std
;
8
using namespace
GeographicLib
;
9
10
int
main
() {
11
try
{
12
cout <<
"WGS84 parameters:\n"
13
<<
"a = "
<< Constants::WGS84_a() <<
" m\n"
14
<<
"f = 1/"
<< 1/Constants::WGS84_f() <<
"\n"
;
15
}
16
catch
(
const
exception&
e
) {
17
cerr <<
"Caught exception: "
<< e.what() <<
"\n"
;
18
return
1;
19
}
20
}
main
int main()
Definition:
example-Constants.cpp:10
std
Definition:
BFloat16.h:88
GeographicLib
Namespace for GeographicLib.
Definition:
JacobiConformal.hpp:15
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Constants.hpp
Header for GeographicLib::Constants class.
gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:12