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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:12