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>
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
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
GeographicLib
Namespace for GeographicLib.
Definition: JacobiConformal.hpp:15
Constants.hpp
Header for GeographicLib::Constants class.
std
Definition: BFloat16.h:88


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:16