dotnet/NETGeographicLib/EllipticFunction.cpp
Go to the documentation of this file.
1 
11 #include "stdafx.h"
13 #include "EllipticFunction.h"
14 #include "NETGeographicLib.h"
15 
16 using namespace NETGeographicLib;
17 
18 const char BADALLOC[] = "Failed to allocate memory for the GeographicLib::EllipticFunction.";
19 
20 //*****************************************************************************
21 EllipticFunction::EllipticFunction(double k2, double alpha2)
22 {
23  try
24  {
26  }
27  catch ( std::bad_alloc )
28  {
29  throw gcnew GeographicErr( BADALLOC );
30  }
31 }
32 
33 //*****************************************************************************
34 EllipticFunction::EllipticFunction(double k2, double alpha2, double kp2, double alphap2)
35 {
36  try
37  {
39  }
40  catch ( std::bad_alloc err )
41  {
42  throw gcnew GeographicErr( BADALLOC );
43  }
44 }
45 
46 //*****************************************************************************
48 {
49  if ( m_pEllipticFunction != NULL )
50  {
51  delete m_pEllipticFunction;
52  m_pEllipticFunction = NULL;
53  }
54 }
55 
56 //*****************************************************************************
57 void EllipticFunction::Reset(double k2, double alpha2 )
58 {
60 }
61 
62 //*****************************************************************************
63 void EllipticFunction::Reset(double k2, double alpha2, double kp2, double alphap2)
64 {
66 }
67 
68 //*****************************************************************************
70 {
71  return m_pEllipticFunction->K();
72 }
73 
74 //*****************************************************************************
76 {
77  return m_pEllipticFunction->E();
78 }
79 
80 //*****************************************************************************
82 {
83  return m_pEllipticFunction->D();
84 }
85 
86 //*****************************************************************************
88 {
89  return m_pEllipticFunction->KE();
90 }
91 
92 //*****************************************************************************
94 {
95  return m_pEllipticFunction->Pi();
96 }
97 
98 //*****************************************************************************
100 {
101  return m_pEllipticFunction->G();
102 }
103 
104 //*****************************************************************************
106 {
107  return m_pEllipticFunction->H();
108 }
109 
110 //*****************************************************************************
111 double EllipticFunction::F(double phi)
112 {
113  return m_pEllipticFunction->F( phi );
114 }
115 
116 //*****************************************************************************
117 double EllipticFunction::E(double phi)
118 {
119  return m_pEllipticFunction->E( phi );
120 }
121 
122 //*****************************************************************************
123 double EllipticFunction::Ed(double ang)
124 {
125  return m_pEllipticFunction->Ed(ang);
126 }
127 
128 //*****************************************************************************
129 double EllipticFunction::Einv(double x)
130 {
131  return m_pEllipticFunction->Einv(x);
132 }
133 
134 //*****************************************************************************
135 double EllipticFunction::Pi(double phi)
136 {
137  return m_pEllipticFunction->Pi(phi);
138 }
139 
140 //*****************************************************************************
141 double EllipticFunction::D(double phi)
142 {
143  return m_pEllipticFunction->D(phi);
144 }
145 
146 //*****************************************************************************
147 double EllipticFunction::G(double phi)
148 {
149  return m_pEllipticFunction->G(phi);
150 }
151 
152 //*****************************************************************************
153 double EllipticFunction::H(double phi)
154 {
155  return m_pEllipticFunction->H(phi);
156 }
157 
158 //*****************************************************************************
159 double EllipticFunction::F(double sn, double cn, double dn)
160 {
161  return m_pEllipticFunction->F( sn, cn, dn );
162 }
163 
164 //*****************************************************************************
165 double EllipticFunction::E(double sn, double cn, double dn)
166 {
167  return m_pEllipticFunction->E( sn, cn, dn );
168 }
169 
170 //*****************************************************************************
171 double EllipticFunction::Pi(double sn, double cn, double dn)
172 {
173  return m_pEllipticFunction->Pi( sn, cn, dn );
174 }
175 
176 //*****************************************************************************
177 double EllipticFunction::D(double sn, double cn, double dn)
178 {
179  return m_pEllipticFunction->D( sn, cn, dn );
180 }
181 
182 //*****************************************************************************
183 double EllipticFunction::G(double sn, double cn, double dn)
184 {
185  return m_pEllipticFunction->G( sn, cn, dn );
186 }
187 
188 //*****************************************************************************
189 double EllipticFunction::H(double sn, double cn, double dn)
190 {
191  return m_pEllipticFunction->H( sn, cn, dn );
192 }
193 
194 //*****************************************************************************
195 double EllipticFunction::deltaF(double sn, double cn, double dn)
196 {
197  return m_pEllipticFunction->deltaF( sn, cn, dn );
198 }
199 
200 //*****************************************************************************
201 double EllipticFunction::deltaE(double sn, double cn, double dn)
202 {
203  return m_pEllipticFunction->deltaE( sn, cn, dn );
204 }
205 
206 //*****************************************************************************
207 double EllipticFunction::deltaEinv(double stau, double ctau)
208 {
209  return m_pEllipticFunction->deltaEinv( stau, ctau );
210 }
211 
212 //*****************************************************************************
213 double EllipticFunction::deltaPi(double sn, double cn, double dn)
214 {
215  return m_pEllipticFunction->deltaPi( sn, cn, dn );
216 }
217 
218 //*****************************************************************************
219 double EllipticFunction::deltaD(double sn, double cn, double dn)
220 {
221  return m_pEllipticFunction->deltaD( sn, cn, dn );
222 }
223 
224 //*****************************************************************************
225 double EllipticFunction::deltaG(double sn, double cn, double dn)
226 {
227  return m_pEllipticFunction->deltaG( sn, cn, dn );
228 }
229 
230 //*****************************************************************************
231 double EllipticFunction::deltaH(double sn, double cn, double dn)
232 {
233  return m_pEllipticFunction->deltaH( sn, cn, dn );
234 }
235 
236 //*****************************************************************************
238  [System::Runtime::InteropServices::Out] double% sn,
239  [System::Runtime::InteropServices::Out] double% cn,
240  [System::Runtime::InteropServices::Out] double% dn)
241 {
242  double lsn, lcn, ldn;
243  m_pEllipticFunction->sncndn( x, lsn, lcn, ldn );
244  sn = lsn;
245  cn = lcn;
246  dn = ldn;
247 }
248 
249 //*****************************************************************************
250 double EllipticFunction::Delta(double sn, double cn)
251 {
252  return m_pEllipticFunction->Delta( sn, cn );
253 }
254 
255 //*****************************************************************************
256 double EllipticFunction::RF(double x, double y, double z)
257 {
259 }
260 
261 //*****************************************************************************
262 double EllipticFunction::RF(double x, double y)
263 {
265 }
266 
267 //*****************************************************************************
268 double EllipticFunction::RC(double x, double y)
269 {
271 }
272 
273 //*****************************************************************************
274 double EllipticFunction::RG(double x, double y, double z)
275 {
277 }
278 
279 //*****************************************************************************
280 double EllipticFunction::RG(double x, double y)
281 {
283 }
284 
285 //*****************************************************************************
286 double EllipticFunction::RJ(double x, double y, double z, double p)
287 {
289 }
290 
291 //*****************************************************************************
292 double EllipticFunction::RD(double x, double y, double z)
293 {
295 }
296 
297 //*****************************************************************************
299 { return m_pEllipticFunction->k2(); }
300 
301 //*****************************************************************************
303 { return m_pEllipticFunction->kp2(); }
304 
305 //*****************************************************************************
307 { return m_pEllipticFunction->alpha2(); }
308 
309 //*****************************************************************************
311 { return m_pEllipticFunction->alpha2(); }
GeographicLib::EllipticFunction::Delta
Math::real Delta(real sn, real cn) const
Definition: EllipticFunction.hpp:584
NETGeographicLib::EllipticFunction::Delta
double Delta(double sn, double cn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:250
GeographicLib::EllipticFunction::RF
static real RF(real x, real y, real z)
Definition: src/EllipticFunction.cpp:29
GeographicLib::EllipticFunction::D
Math::real D() const
Definition: EllipticFunction.hpp:215
NETGeographicLib::EllipticFunction::D
double D()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:81
NETGeographicLib::EllipticFunction::Reset
void Reset(double k2, double alpha2)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:57
EllipticFunction.hpp
Header for GeographicLib::EllipticFunction class.
NETGeographicLib::EllipticFunction::deltaEinv
double deltaEinv(double stau, double ctau)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:207
NETGeographicLib::EllipticFunction::H
double H()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:105
x
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition: gnuplot_common_settings.hh:12
GeographicLib::EllipticFunction::Reset
void Reset(real k2=0, real alpha2=0)
Definition: EllipticFunction.hpp:125
GeographicLib::EllipticFunction
Elliptic integrals and functions.
Definition: EllipticFunction.hpp:62
GeographicLib::EllipticFunction::RC
static real RC(real x, real y)
Definition: src/EllipticFunction.cpp:81
NETGeographicLib::EllipticFunction::deltaD
double deltaD(double sn, double cn, double dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:219
NETGeographicLib::EllipticFunction::EllipticFunction
EllipticFunction(double k2, double alpha2)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:21
GeographicLib::EllipticFunction::deltaE
Math::real deltaE(real sn, real cn, real dn) const
Definition: src/EllipticFunction.cpp:464
GeographicLib::EllipticFunction::sncndn
void sncndn(real x, real &sn, real &cn, real &dn) const
Definition: src/EllipticFunction.cpp:315
NETGeographicLib::EllipticFunction::E
double E()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:75
NETGeographicLib::EllipticFunction::Einv
double Einv(double x)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:129
NETGeographicLib::EllipticFunction::RC
static double RC(double x, double y)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:268
NETGeographicLib::GeographicErr
Exception class for NETGeographicLib.
Definition: NETGeographicLib.h:132
NETGeographicLib::EllipticFunction::deltaH
double deltaH(double sn, double cn, double dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:231
NETGeographicLib::EllipticFunction::kp2
property double kp2
Definition: EllipticFunction.h:169
GeographicLib::EllipticFunction::deltaH
Math::real deltaH(real sn, real cn, real dn) const
Definition: src/EllipticFunction.cpp:488
GeographicLib::EllipticFunction::G
Math::real G() const
Definition: EllipticFunction.hpp:250
NETGeographicLib::EllipticFunction::alphap2
property double alphap2
Definition: EllipticFunction.h:180
GeographicLib::EllipticFunction::K
Math::real K() const
Definition: EllipticFunction.hpp:190
NETGeographicLib::EllipticFunction::RG
static double RG(double x, double y, double z)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:274
NETGeographicLib::EllipticFunction::RJ
static double RJ(double x, double y, double z, double p)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:286
cn
static double cn[6]
Definition: fresnl.c:83
NETGeographicLib::EllipticFunction::K
double K()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:69
GeographicLib::EllipticFunction::deltaPi
Math::real deltaPi(real sn, real cn, real dn) const
Definition: src/EllipticFunction.cpp:470
GeographicLib::EllipticFunction::H
Math::real H() const
Definition: EllipticFunction.hpp:264
NETGeographicLib::EllipticFunction::deltaE
double deltaE(double sn, double cn, double dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:201
GeographicLib::EllipticFunction::RD
static real RD(real x, real y, real z)
Definition: src/EllipticFunction.cpp:180
stdafx.h
NETGeographicLib::EllipticFunction::deltaF
double deltaF(double sn, double cn, double dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:195
pybind_wrapper_test_script.z
z
Definition: pybind_wrapper_test_script.py:61
GeographicLib::EllipticFunction::Ed
Math::real Ed(real ang) const
Definition: src/EllipticFunction.cpp:506
NETGeographicLib::EllipticFunction::Ed
double Ed(double ang)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:123
NETGeographicLib::EllipticFunction::m_pEllipticFunction
GeographicLib::EllipticFunction * m_pEllipticFunction
Definition: EllipticFunction.h:73
GeographicLib::EllipticFunction::RJ
static real RJ(real x, real y, real z, real p)
Definition: src/EllipticFunction.cpp:127
NETGeographicLib.h
Header for NETGeographicLib::NETGeographicLib objects.
NETGeographicLib::EllipticFunction::deltaG
double deltaG(double sn, double cn, double dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:225
y
Scalar * y
Definition: level1_cplx_impl.h:124
BADALLOC
const char BADALLOC[]
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:18
sn
static double sn[6]
Definition: fresnl.c:63
NETGeographicLib::EllipticFunction::RF
static double RF(double x, double y, double z)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:256
GeographicLib::EllipticFunction::deltaF
Math::real deltaF(real sn, real cn, real dn) const
Definition: src/EllipticFunction.cpp:458
NETGeographicLib::EllipticFunction::k2
property double k2
Definition: EllipticFunction.h:163
GeographicLib::EllipticFunction::RG
static real RG(real x, real y, real z)
Definition: src/EllipticFunction.cpp:96
p
float * p
Definition: Tutorial_Map_using.cpp:9
GeographicLib::EllipticFunction::Einv
Math::real Einv(real x) const
Definition: src/EllipticFunction.cpp:538
GeographicLib::EllipticFunction::Pi
Math::real Pi() const
Definition: EllipticFunction.hpp:237
GeographicLib::EllipticFunction::F
Math::real F(real phi) const
Definition: src/EllipticFunction.cpp:494
GeographicLib::EllipticFunction::KE
Math::real KE() const
Definition: EllipticFunction.hpp:223
NETGeographicLib::EllipticFunction::deltaPi
double deltaPi(double sn, double cn, double dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:213
NULL
#define NULL
Definition: ccolamd.c:609
NETGeographicLib::EllipticFunction::KE
double KE()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:87
GeographicLib::EllipticFunction::E
Math::real E() const
Definition: EllipticFunction.hpp:202
GeographicLib::EllipticFunction::deltaD
Math::real deltaD(real sn, real cn, real dn) const
Definition: src/EllipticFunction.cpp:476
NETGeographicLib::EllipticFunction::F
double F(double phi)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:111
get
Container::iterator get(Container &c, Position position)
Definition: stdlist_overload.cpp:29
NETGeographicLib
Definition: Accumulator.h:13
GeographicLib::EllipticFunction::deltaG
Math::real deltaG(real sn, real cn, real dn) const
Definition: src/EllipticFunction.cpp:482
NETGeographicLib::EllipticFunction::Pi
double Pi()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:93
NETGeographicLib::EllipticFunction::alpha2
property double alpha2
Definition: EllipticFunction.h:174
NETGeographicLib::EllipticFunction
.NET wrapper for GeographicLib::EllipticFunction.
Definition: EllipticFunction.h:69
NETGeographicLib::EllipticFunction::G
double G()
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:99
NETGeographicLib::EllipticFunction::sncndn
void sncndn(double x, [System::Runtime::InteropServices::Out] double% sn, [System::Runtime::InteropServices::Out] double% cn, [System::Runtime::InteropServices::Out] double% dn)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:237
GeographicLib::EllipticFunction::deltaEinv
Math::real deltaEinv(real stau, real ctau) const
Definition: src/EllipticFunction.cpp:563
NETGeographicLib::EllipticFunction::RD
static double RD(double x, double y, double z)
Definition: dotnet/NETGeographicLib/EllipticFunction.cpp:292
EllipticFunction.h
Header for NETGeographicLib::EllipticFunction class.


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:30