Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Hierarchy
Class Members
All
!
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
f
k
l
m
n
o
p
r
s
t
v
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
:
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
Enumerator
b
c
e
f
g
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
gtsam
3rdparty
GeographicLib
dotnet
examples
ManagedCPP
dotnet/examples/ManagedCPP/example-GravityModel.cpp
Go to the documentation of this file.
1
using namespace
System;
2
using namespace
NETGeographicLib
;
3
4
int
main
(
array<System::String ^>
^
/*args*/
)
5
{
6
try
{
7
GravityModel
^ grav =
gcnew
GravityModel
(
"egm96"
,
""
);
8
double
lat
= 27.99,
lon
= 86.93,
h
= 8820;
// Mt Everest
9
double
gx, gy, gz;
10
grav->
Gravity
(
lat
,
lon
,
h
, gx, gy, gz);
11
Console::WriteLine(String::Format(
"{0} {1} {2}"
, gx, gy, gz));
12
}
13
catch
(
GeographicErr
^
e
) {
14
Console::WriteLine(String::Format(
"Caught exception: {0}"
,
e
->Message));
15
return
-1;
16
}
17
return
0;
18
}
main
int main(array< System::String ^> ^)
Definition:
dotnet/examples/ManagedCPP/example-GravityModel.cpp:4
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
NETGeographicLib::GravityModel
.NET wrapper for GeographicLib::GravityModel.
Definition:
GravityModel.h:83
h
const double h
Definition:
testSimpleHelicopter.cpp:19
NETGeographicLib::GeographicErr
Exception class for NETGeographicLib.
Definition:
NETGeographicLib.h:132
array
Definition:
numpy.h:821
NETGeographicLib::GravityModel::Gravity
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)
Definition:
dotnet/NETGeographicLib/GravityModel.cpp:53
lon
static const double lon
Definition:
testGeographicLib.cpp:34
NETGeographicLib
Definition:
Accumulator.h:13
lat
static const double lat
Definition:
testGeographicLib.cpp:34
gtsam
Author(s):
autogenerated on Thu Apr 10 2025 03:01:25