18 const char BADALLOC[] =
"Failed to allocate memory for a GeographicLib::GeodesicLineExact";
23 if ( m_pGeodesicLineExact !=
NULL )
25 delete m_pGeodesicLineExact;
26 m_pGeodesicLineExact =
NULL;
40 *pGeodesicExact, lat1, lon1, azi1, static_cast<unsigned>(caps) );
42 catch ( std::bad_alloc )
56 catch (std::bad_alloc)
70 static_cast<unsigned>(caps) );
72 catch ( std::bad_alloc )
80 [System::Runtime::InteropServices::Out]
double% lat2,
81 [System::Runtime::InteropServices::Out]
double% lon2,
82 [System::Runtime::InteropServices::Out]
double% azi2,
83 [System::Runtime::InteropServices::Out]
double% m12,
84 [System::Runtime::InteropServices::Out]
double% M12,
85 [System::Runtime::InteropServices::Out]
double% M21,
86 [System::Runtime::InteropServices::Out]
double% S12)
88 double llat2, llon2, lazi2, lm12, lM12, lM21, lS12;
90 lm12, lM12, lM21, lS12 );
103 [System::Runtime::InteropServices::Out]
double% lat2,
104 [System::Runtime::InteropServices::Out]
double% lon2)
115 [System::Runtime::InteropServices::Out]
double% lat2,
116 [System::Runtime::InteropServices::Out]
double% lon2,
117 [System::Runtime::InteropServices::Out]
double% azi2)
119 double llat2, llon2, lazi2;
129 [System::Runtime::InteropServices::Out]
double% lat2,
130 [System::Runtime::InteropServices::Out]
double% lon2,
131 [System::Runtime::InteropServices::Out]
double% azi2,
132 [System::Runtime::InteropServices::Out]
double% m12)
134 double llat2, llon2, lazi2, lm12;
146 [System::Runtime::InteropServices::Out]
double% lat2,
147 [System::Runtime::InteropServices::Out]
double% lon2,
148 [System::Runtime::InteropServices::Out]
double% azi2,
149 [System::Runtime::InteropServices::Out]
double% M12,
150 [System::Runtime::InteropServices::Out]
double% M21)
152 double llat2, llon2, lazi2, lM12, lM21;
165 [System::Runtime::InteropServices::Out]
double% lat2,
166 [System::Runtime::InteropServices::Out]
double% lon2,
167 [System::Runtime::InteropServices::Out]
double% azi2,
168 [System::Runtime::InteropServices::Out]
double% m12,
169 [System::Runtime::InteropServices::Out]
double% M12,
170 [System::Runtime::InteropServices::Out]
double% M21)
172 double llat2, llon2, lazi2, lm12, lM12, lM21;
186 [System::Runtime::InteropServices::Out]
double% lat2,
187 [System::Runtime::InteropServices::Out]
double% lon2,
188 [System::Runtime::InteropServices::Out]
double% azi2,
189 [System::Runtime::InteropServices::Out]
double% s12,
190 [System::Runtime::InteropServices::Out]
double% m12,
191 [System::Runtime::InteropServices::Out]
double% M12,
192 [System::Runtime::InteropServices::Out]
double% M21,
193 [System::Runtime::InteropServices::Out]
double% S12)
195 double llat2, llon2, lazi2, ls12, lm12, lM12, lM21, lS12;
197 lm12, lM12, lM21, lS12 );
210 [System::Runtime::InteropServices::Out]
double% lat2,
211 [System::Runtime::InteropServices::Out]
double% lon2)
221 [System::Runtime::InteropServices::Out]
double% lat2,
222 [System::Runtime::InteropServices::Out]
double% lon2,
223 [System::Runtime::InteropServices::Out]
double% azi2)
225 double llat2, llon2, lazi2;
234 [System::Runtime::InteropServices::Out]
double% lat2,
235 [System::Runtime::InteropServices::Out]
double% lon2,
236 [System::Runtime::InteropServices::Out]
double% azi2,
237 [System::Runtime::InteropServices::Out]
double% s12)
239 double llat2, llon2, lazi2, ls12;
249 [System::Runtime::InteropServices::Out]
double% lat2,
250 [System::Runtime::InteropServices::Out]
double% lon2,
251 [System::Runtime::InteropServices::Out]
double% azi2,
252 [System::Runtime::InteropServices::Out]
double% s12,
253 [System::Runtime::InteropServices::Out]
double% m12)
255 double llat2, llon2, lazi2, ls12, lm12;
267 [System::Runtime::InteropServices::Out]
double% lat2,
268 [System::Runtime::InteropServices::Out]
double% lon2,
269 [System::Runtime::InteropServices::Out]
double% azi2,
270 [System::Runtime::InteropServices::Out]
double% s12,
271 [System::Runtime::InteropServices::Out]
double% M12,
272 [System::Runtime::InteropServices::Out]
double% M21)
274 double llat2, llon2, lazi2, ls12, lM12, lM21;
287 [System::Runtime::InteropServices::Out]
double% lat2,
288 [System::Runtime::InteropServices::Out]
double% lon2,
289 [System::Runtime::InteropServices::Out]
double% azi2,
290 [System::Runtime::InteropServices::Out]
double% s12,
291 [System::Runtime::InteropServices::Out]
double% m12,
292 [System::Runtime::InteropServices::Out]
double% M12,
293 [System::Runtime::InteropServices::Out]
double% M21)
295 double llat2, llon2, lazi2, ls12, lm12, lM12, lM21;
310 [System::Runtime::InteropServices::Out]
double% lat2,
311 [System::Runtime::InteropServices::Out]
double% lon2,
312 [System::Runtime::InteropServices::Out]
double% azi2,
313 [System::Runtime::InteropServices::Out]
double% s12,
314 [System::Runtime::InteropServices::Out]
double% m12,
315 [System::Runtime::InteropServices::Out]
double% M12,
316 [System::Runtime::InteropServices::Out]
double% M21,
317 [System::Runtime::InteropServices::Out]
double% S12)
319 double llat2, llon2, lazi2, ls12, lm12, lM12, lM21, lS12;
321 static_cast<unsigned>(outmask),
322 llat2, llon2, lazi2, ls12, lm12, lM12, lM21, lS12 );
Math::real GenDistance(bool arcmode) const
void ArcPosition(double a12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% azi2, [System::Runtime::InteropServices::Out] double% s12, [System::Runtime::InteropServices::Out] double% m12, [System::Runtime::InteropServices::Out] double% M12, [System::Runtime::InteropServices::Out] double% M21, [System::Runtime::InteropServices::Out] double% S12)
Math::real Azimuth() const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) const
NETGeographicLib::Mask Capabilities()
Math::real EquatorialArc() const
Exception class for NETGeographicLib.
std::ofstream out("Result.txt")
double GenDistance(bool arcmode)
void EquatorialAzimuthSinCos([System::Runtime::InteropServices::Out] double% sazi0, [System::Runtime::InteropServices::Out] double% cazi0)
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
void SetDistance(real s13)
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Math::real MajorRadius() const
void g(const string &key, int i)
void SetDistance(double s13)
void GenSetDistance(bool arcmode, real s13_a13)
void AzimuthSinCos([System::Runtime::InteropServices::Out] double% sazi1, [System::Runtime::InteropServices::Out] double% cazi1)
Header for GeographicLib::GeodesicLineExact class.
void GenSetDistance(bool arcmode, double s13_a13)
Exact geodesic calculations.
Math::real GenPosition(bool arcmode, real s12_a12, unsigned outmask, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) const
Header for NETGeographicLib::GeodesicLineExact class.
double GenPosition(bool arcmode, double s12_a12, GeodesicLineExact::mask outmask, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% azi2, [System::Runtime::InteropServices::Out] double% s12, [System::Runtime::InteropServices::Out] double% m12, [System::Runtime::InteropServices::Out] double% M12, [System::Runtime::InteropServices::Out] double% M21, [System::Runtime::InteropServices::Out] double% S12)
.NET wrapper for GeographicLib::GeodesicLineExact.
.NET wrapper for GeographicLib::GeodesicExact.
Math::real Latitude() const
GeodesicLineExact(GeodesicExact^ g, double lat1, double lon1, double azi1, NETGeographicLib::Mask caps)
Header for NETGeographicLib::GeodesicExact class.
Math::real Longitude() const
Container::iterator get(Container &c, Position position)
Math::real EquatorialAzimuth() const
unsigned Capabilities() const
GeographicLib::GeodesicLineExact * m_pGeodesicLineExact
System::IntPtr GetUnmanaged()
Math::real Flattening() const
double Position(double s12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% azi2, [System::Runtime::InteropServices::Out] double% m12, [System::Runtime::InteropServices::Out] double% M12, [System::Runtime::InteropServices::Out] double% M21, [System::Runtime::InteropServices::Out] double% S12)
static const GeodesicExact & WGS84()
Math::real Distance() const