- HandlerMinelayerData: BUILD_RTI Guards für RTI-Abhängigkeiten - svcTabCommon: Export-Header-Fix via Fallback-Target - TrainingAreaBase: Stub-Header für BUILD_RTI=OFF - ddsfts: Include-Pfad und Dependency-Fixes - BUILD_RTI=OFF Compilation vollständig unterstützt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Entire-Checkpoint: 01M0JNZA586SACX1PRZ2DJAE5S
29 lines
771 B
C++
29 lines
771 B
C++
// Example of using the Triaxial::GeodesicLine3 class.
|
|
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
#include <exception>
|
|
#include <GeographicLib/Triaxial/Geodesic3.hpp>
|
|
|
|
using namespace std;
|
|
using namespace GeographicLib;
|
|
|
|
int main() {
|
|
try {
|
|
Triaxial::Geodesic3 g(Triaxial::Ellipsoid3::Earth());
|
|
Triaxial::GeodesicLine3 l = g.Line(90, 0, 135);
|
|
// The approximate distance between opposite umbilical points
|
|
double s0 = 20003986;
|
|
int num = 20;
|
|
for (int i = 0; i <= num; ++i) {
|
|
double bet2, omg2, alp2, s12 = i*s0/num;
|
|
l.Position(s12, bet2, omg2, alp2);
|
|
cout << s12 << " " << bet2 << " " << omg2 << " " << alp2 << "\n";
|
|
}
|
|
}
|
|
catch (const exception& e) {
|
|
cerr << "Caught exception: " << e.what() << "\n";
|
|
return 1;
|
|
}
|
|
}
|