24 if ( m_pGravityModel !=
NULL )
26 delete m_pGravityModel;
27 m_pGravityModel =
NULL;
34 if ( name ==
nullptr )
throw gcnew GeographicErr(
"name cannot be a null pointer.");
35 if ( path ==
nullptr )
throw gcnew GeographicErr(
"path cannot be a null pointer.");
42 catch ( std::bad_alloc err )
44 throw gcnew GeographicErr(
"Failed to allocate memory for a GeographicLib::GravityModel" );
46 catch (
const std::exception& err )
54 [System::Runtime::InteropServices::Out]
double% gx,
55 [System::Runtime::InteropServices::Out]
double% gy,
56 [System::Runtime::InteropServices::Out]
double% gz)
68 [System::Runtime::InteropServices::Out]
double% deltax,
69 [System::Runtime::InteropServices::Out]
double% deltay,
70 [System::Runtime::InteropServices::Out]
double% deltaz)
88 [System::Runtime::InteropServices::Out]
double% Dg01,
89 [System::Runtime::InteropServices::Out]
double%
xi,
90 [System::Runtime::InteropServices::Out]
double% eta)
101 [System::Runtime::InteropServices::Out]
double% gX,
102 [System::Runtime::InteropServices::Out]
double% gY,
103 [System::Runtime::InteropServices::Out]
double% gZ)
105 double lgx, lgy, lgz;
115 [System::Runtime::InteropServices::Out]
double% GX,
116 [System::Runtime::InteropServices::Out]
double% GY,
117 [System::Runtime::InteropServices::Out]
double% GZ)
119 double lgx, lgy, lgz;
129 [System::Runtime::InteropServices::Out]
double% deltaX,
130 [System::Runtime::InteropServices::Out]
double% deltaY,
131 [System::Runtime::InteropServices::Out]
double% deltaZ)
133 double lgx, lgy, lgz;
149 [System::Runtime::InteropServices::Out]
double% gammaX,
150 [System::Runtime::InteropServices::Out]
double% gammaY,
151 [System::Runtime::InteropServices::Out]
double% gammaZ)
153 double lgx, lgy, lgz;
163 [System::Runtime::InteropServices::Out]
double% fX,
164 [System::Runtime::InteropServices::Out]
double% fY)
180 catch (
const std::exception& err )
223 catch (
const std::exception& err )
236 catch (
const std::exception& err )
Math::real Phi(real X, real Y, real &fX, real &fY) const
const std::string & GravityModelName() const
Math::real T(real X, real Y, real Z, real &deltaX, real &deltaY, real &deltaZ) const
Header for NETGeographicLib::NETGeographicLib objects.
void SphericalAnomaly(double lat, double lon, double h, [System::Runtime::InteropServices::Out] double% Dg01, [System::Runtime::InteropServices::Out] double% xi, [System::Runtime::InteropServices::Out] double% eta)
Math::real MajorRadius() const
const std::string & Description() const
.NET wrapper for GeographicLib::GravityCircle.
Exception class for NETGeographicLib.
std::ofstream out("Result.txt")
double U(double X, double Y, double Z, [System::Runtime::InteropServices::Out] double% gammaX, [System::Runtime::InteropServices::Out] double% gammaY, [System::Runtime::InteropServices::Out] double% gammaZ)
Header for GeographicLib::GravityModel class.
GravityModel(System::String^ name, System::String^ path)
const NormalGravity & ReferenceEllipsoid() const
const GeographicLib::GravityModel * m_pGravityModel
double Gravity(double lat, double lon, double h, [System::Runtime::InteropServices::Out] double% gx, [System::Runtime::InteropServices::Out] double% gy, [System::Runtime::InteropServices::Out] double% gz)
Math::real MassConstant() const
const std::string & DateTime() const
Math::real Flattening() const
Header for NETGeographicLib::GravityModel class.
double T(double X, double Y, double Z, [System::Runtime::InteropServices::Out] double% deltaX, [System::Runtime::InteropServices::Out] double% deltaY, [System::Runtime::InteropServices::Out] double% deltaZ)
.NET wrapper for GeographicLib::NormalGravity.
Header for NETGeographicLib::GravityCircle class.
Header for NETGeographicLib::NormalGravity class.
Math::real Gravity(real lat, real lon, real h, real &gx, real &gy, real &gz) const
static System::String UnmanagedToManaged(const std::string &s)
double Disturbance(double lat, double lon, double h, [System::Runtime::InteropServices::Out] double% deltax, [System::Runtime::InteropServices::Out] double% deltay, [System::Runtime::InteropServices::Out] double% deltaz)
static System::String DefaultGravityName()
double GeoidHeight(double lat, double lon)
double W(double X, double Y, double Z, [System::Runtime::InteropServices::Out] double% gX, [System::Runtime::InteropServices::Out] double% gY, [System::Runtime::InteropServices::Out] double% gZ)
double V(double X, double Y, double Z, [System::Runtime::InteropServices::Out] double% GX, [System::Runtime::InteropServices::Out] double% GY, [System::Runtime::InteropServices::Out] double% GZ)
Math::real Disturbance(real lat, real lon, real h, real &deltax, real &deltay, real &deltaz) const
Model of the earth's gravity field.
Math::real ReferenceMassConstant() const
NormalGravity ReferenceEllipsoid()
static std::string DefaultGravityName()
GravityCircle Circle(real lat, real h, unsigned caps=ALL) const
Math::real V(real X, real Y, real Z, real &GX, real &GY, real &GZ) const
static std::string DefaultGravityPath()
const std::string & GravityFile() const
double Phi(double X, double Y, [System::Runtime::InteropServices::Out] double% fX, [System::Runtime::InteropServices::Out] double% fY)
static std::string ManagedToUnmanaged(System::String^ s)
GravityCircle Circle(double lat, double h, Mask caps)
Math::real AngularVelocity() const
.NET wrapper for GeographicLib::GravityModel.
static System::String DefaultGravityPath()
Annotation for function names.
Container::iterator get(Container &c, Position position)
Math::real W(real X, real Y, real Z, real &gX, real &gY, real &gZ) const
Header for GeographicLib::GravityCircle class.
void SphericalAnomaly(real lat, real lon, real h, real &Dg01, real &xi, real &eta) const
const std::string & GravityModelDirectory() const
Math::real U(real X, real Y, real Z, real &gammaX, real &gammaY, real &gammaZ) const
Math::real GeoidHeight(real lat, real lon) const