Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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:
Half.h:150
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 Sat May 8 2021 02:42:02