18 const char BADALLOC[] =
"Failed to allocate memory for a GeographicLib::GeodesicLine";
23 if ( m_pGeodesicLine !=
NULL )
25 delete m_pGeodesicLine;
26 m_pGeodesicLine =
NULL;
40 lat1, lon1, azi1, static_cast<unsigned>(caps) );
42 catch ( std::bad_alloc )
55 catch (std::bad_alloc)
69 static_cast<unsigned>(caps) );
71 catch ( std::bad_alloc )
79 [System::Runtime::InteropServices::Out]
double% lat2,
80 [System::Runtime::InteropServices::Out]
double% lon2,
81 [System::Runtime::InteropServices::Out]
double% azi2,
82 [System::Runtime::InteropServices::Out]
double% m12,
83 [System::Runtime::InteropServices::Out]
double% M12,
84 [System::Runtime::InteropServices::Out]
double% M21,
85 [System::Runtime::InteropServices::Out]
double% S12)
87 double llat2, llon2, lazi2, lm12, lM12, lM21, lS12;
102 [System::Runtime::InteropServices::Out]
double% lat2,
103 [System::Runtime::InteropServices::Out]
double% lon2)
114 [System::Runtime::InteropServices::Out]
double% lat2,
115 [System::Runtime::InteropServices::Out]
double% lon2,
116 [System::Runtime::InteropServices::Out]
double% azi2)
118 double llat2, llon2, lazi2;
128 [System::Runtime::InteropServices::Out]
double% lat2,
129 [System::Runtime::InteropServices::Out]
double% lon2,
130 [System::Runtime::InteropServices::Out]
double% azi2,
131 [System::Runtime::InteropServices::Out]
double% m12)
133 double llat2, llon2, lazi2, lm12;
145 [System::Runtime::InteropServices::Out]
double% lat2,
146 [System::Runtime::InteropServices::Out]
double% lon2,
147 [System::Runtime::InteropServices::Out]
double% azi2,
148 [System::Runtime::InteropServices::Out]
double% M12,
149 [System::Runtime::InteropServices::Out]
double% M21)
151 double llat2, llon2, lazi2, lM12, lM21;
164 [System::Runtime::InteropServices::Out]
double% lat2,
165 [System::Runtime::InteropServices::Out]
double% lon2,
166 [System::Runtime::InteropServices::Out]
double% azi2,
167 [System::Runtime::InteropServices::Out]
double% m12,
168 [System::Runtime::InteropServices::Out]
double% M12,
169 [System::Runtime::InteropServices::Out]
double% M21)
171 double llat2, llon2, lazi2, lm12, lM12, lM21;
185 [System::Runtime::InteropServices::Out]
double% lat2,
186 [System::Runtime::InteropServices::Out]
double% lon2,
187 [System::Runtime::InteropServices::Out]
double% azi2,
188 [System::Runtime::InteropServices::Out]
double% s12,
189 [System::Runtime::InteropServices::Out]
double% m12,
190 [System::Runtime::InteropServices::Out]
double% M12,
191 [System::Runtime::InteropServices::Out]
double% M21,
192 [System::Runtime::InteropServices::Out]
double% S12)
194 double llat2, llon2, lazi2, ls12, lm12, lM12, lM21, lS12;
196 ls12, lm12, lM12, lM21, lS12 );
209 [System::Runtime::InteropServices::Out]
double% lat2,
210 [System::Runtime::InteropServices::Out]
double% lon2)
220 [System::Runtime::InteropServices::Out]
double% lat2,
221 [System::Runtime::InteropServices::Out]
double% lon2,
222 [System::Runtime::InteropServices::Out]
double% azi2)
224 double llat2, llon2, lazi2;
233 [System::Runtime::InteropServices::Out]
double% lat2,
234 [System::Runtime::InteropServices::Out]
double% lon2,
235 [System::Runtime::InteropServices::Out]
double% azi2,
236 [System::Runtime::InteropServices::Out]
double% s12)
238 double llat2, llon2, lazi2, ls12;
248 [System::Runtime::InteropServices::Out]
double% lat2,
249 [System::Runtime::InteropServices::Out]
double% lon2,
250 [System::Runtime::InteropServices::Out]
double% azi2,
251 [System::Runtime::InteropServices::Out]
double% s12,
252 [System::Runtime::InteropServices::Out]
double% m12)
254 double llat2, llon2, lazi2, ls12, lm12;
265 [System::Runtime::InteropServices::Out]
double% lat2,
266 [System::Runtime::InteropServices::Out]
double% lon2,
267 [System::Runtime::InteropServices::Out]
double% azi2,
268 [System::Runtime::InteropServices::Out]
double% s12,
269 [System::Runtime::InteropServices::Out]
double% M12,
270 [System::Runtime::InteropServices::Out]
double% M21)
272 double llat2, llon2, lazi2, ls12, lM12, lM21;
285 [System::Runtime::InteropServices::Out]
double% lat2,
286 [System::Runtime::InteropServices::Out]
double% lon2,
287 [System::Runtime::InteropServices::Out]
double% azi2,
288 [System::Runtime::InteropServices::Out]
double% s12,
289 [System::Runtime::InteropServices::Out]
double% m12,
290 [System::Runtime::InteropServices::Out]
double% M12,
291 [System::Runtime::InteropServices::Out]
double% M21)
293 double llat2, llon2, lazi2, ls12, lm12, lM12, lM21;
295 ls12, lm12, lM12, lM21 );
308 [System::Runtime::InteropServices::Out]
double% lat2,
309 [System::Runtime::InteropServices::Out]
double% lon2,
310 [System::Runtime::InteropServices::Out]
double% azi2,
311 [System::Runtime::InteropServices::Out]
double% s12,
312 [System::Runtime::InteropServices::Out]
double% m12,
313 [System::Runtime::InteropServices::Out]
double% M12,
314 [System::Runtime::InteropServices::Out]
double% M21,
315 [System::Runtime::InteropServices::Out]
double% S12)
317 double llat2, llon2, lazi2, ls12, lm12, lM12, lM21, lS12;
319 static_cast<unsigned>(outmask),
320 llat2, llon2, lazi2, ls12, lm12, lM12, lM21, lS12 );
void SetDistance(double s13)
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)
Header for GeographicLib::GeodesicLine class.
GeodesicLine(Geodesic^ g, double lat1, double lon1, double azi1, NETGeographicLib::Mask caps)
Math::real Flattening() const
void GenSetDistance(bool arcmode, double s13_a13)
NETGeographicLib::Mask Capabilities()
static const Geodesic & WGS84()
Exception class for NETGeographicLib.
std::ofstream out("Result.txt")
void SetDistance(real s13)
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Math::real GenDistance(bool arcmode) const
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Math::real MajorRadius() const
void EquatorialAzimuthSinCos([System::Runtime::InteropServices::Out] double% sazi0, [System::Runtime::InteropServices::Out] double% cazi0)
Math::real EquatorialArc() const
Header for NETGeographicLib::GeodesicLine class.
void g(const string &key, int i)
unsigned Capabilities() const
Math::real Azimuth() const
Math::real Distance() const
void GenSetDistance(bool arcmode, real s13_a13)
Math::real EquatorialAzimuth() const
System::IntPtr GetUnmanaged()
.NET wrapper for GeographicLib::GeodesicLine.
void AzimuthSinCos([System::Runtime::InteropServices::Out] double% sazi1, [System::Runtime::InteropServices::Out] double% cazi1)
.NET wrapper for GeographicLib::Geodesic.
Math::real Latitude() 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)
GeographicLib::GeodesicLine * m_pGeodesicLine
double GenPosition(bool arcmode, double s12_a12, GeodesicLine::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)
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) const
double GenDistance(bool arcmode)
Container::iterator get(Container &c, Position position)
Header for NETGeographicLib::Geodesic class.
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
Math::real Longitude() const