.NET wrapper for GeographicLib::CircularEngine. More...
#include <CircularEngine.h>
Public Member Functions | |
CircularEngine (const GeographicLib::CircularEngine &c) | |
double | LongitudeSum (double coslon, double sinlon) |
double | LongitudeSum (double coslon, double sinlon, [System::Runtime::InteropServices::Out] double% gradx, [System::Runtime::InteropServices::Out] double% grady, [System::Runtime::InteropServices::Out] double% gradz) |
double | LongitudeSum (double lon) |
double | LongitudeSum (double lon, [System::Runtime::InteropServices::Out] double% gradx, [System::Runtime::InteropServices::Out] double% grady, [System::Runtime::InteropServices::Out] double% gradz) |
~CircularEngine () | |
Private Member Functions | |
!CircularEngine () | |
Private Attributes | |
const GeographicLib::CircularEngine * | m_pCircularEngine |
.NET wrapper for GeographicLib::CircularEngine.
This class allows .NET applications to access GeographicLib::CircularEngine.
The class is a companion to SphericalEngine. If the results of a spherical harmonic sum are needed for several points on a circle of constant latitude lat and height h, then SphericalEngine::Circle can compute the inner sum, which is independent of longitude lon, and produce a CircularEngine object. CircularEngine::LongitudeSum() can then be used to perform the outer sum for particular values of lon. This can lead to substantial improvements in computational speed for high degree sum (approximately by a factor of N / 2 where N is the maximum degree).
CircularEngine is tightly linked to the internals of SphericalEngine. For that reason, the constructor for this class is for internal use only. Use SphericalHarmonic::Circle, SphericalHarmonic1::Circle, and SphericalHarmonic2::Circle to create instances of this class.
CircularEngine stores the coefficients needed to allow the summation over order to be performed in 2 or 6 vectors of length M + 1 (depending on whether gradients are to be calculated). For this reason the constructor may throw a GeographicErr exception.
C# Example:
Managed C++ Example:
Visual Basic Example:
INTERFACE DIFFERENCES:
The () operator has been replaced with with LongitudeSum.
This class does not have a constructor that can be used in a .NET application. Use SphericalHarmonic::Circle, SphericalHarmonic1::Circle or SphericalHarmonic2::Circle to create instances of this class.
Definition at line 54 of file CircularEngine.h.
|
private |
Definition at line 36 of file dotnet/NETGeographicLib/CircularEngine.cpp.
CircularEngine::CircularEngine | ( | const GeographicLib::CircularEngine & | c | ) |
The constructor.
This constructor should not be used in .NET applications. Use SphericalHarmonic::Circle, SphericalHarmonic1::Circle or SphericalHarmonic2::Circle to create instances of this class.
[in] | c | The unmanaged CircularEngine to be copied. |
Definition at line 19 of file dotnet/NETGeographicLib/CircularEngine.cpp.
|
inline |
The destructor calls the finalizer
Definition at line 77 of file CircularEngine.h.
double CircularEngine::LongitudeSum | ( | double | coslon, |
double | sinlon | ||
) |
Evaluate the sum for a particular longitude given in terms of its cosine and sine.
[in] | coslon | the cosine of the longitude. |
[in] | sinlon | the sine of the longitude. |
The arguments must satisfy coslon2 + sinlon2 = 1.
Definition at line 46 of file dotnet/NETGeographicLib/CircularEngine.cpp.
double CircularEngine::LongitudeSum | ( | double | coslon, |
double | sinlon, | ||
[System::Runtime::InteropServices::Out] double% | gradx, | ||
[System::Runtime::InteropServices::Out] double% | grady, | ||
[System::Runtime::InteropServices::Out] double% | gradz | ||
) |
Evaluate the sum and its gradient for a particular longitude given in terms of its cosine and sine.
[in] | coslon | the cosine of the longitude. |
[in] | sinlon | the sine of the longitude. |
[out] | gradx | x component of the gradient. |
[out] | grady | y component of the gradient. |
[out] | gradz | z component of the gradient. |
The gradients will only be computed if the CircularEngine object was created with this capability (e.g., via gradp = true in SphericalHarmonic::Circle). If not, gradx, etc., will not be touched. The arguments must satisfy coslon2 + sinlon2 = 1.
Definition at line 58 of file dotnet/NETGeographicLib/CircularEngine.cpp.
double CircularEngine::LongitudeSum | ( | double | lon | ) |
Evaluate the sum for a particular longitude.
[in] | lon | the longitude (degrees). |
Definition at line 52 of file dotnet/NETGeographicLib/CircularEngine.cpp.
double CircularEngine::LongitudeSum | ( | double | lon, |
[System::Runtime::InteropServices::Out] double% | gradx, | ||
[System::Runtime::InteropServices::Out] double% | grady, | ||
[System::Runtime::InteropServices::Out] double% | gradz | ||
) |
Evaluate the sum and its gradient for a particular longitude.
[in] | lon | the longitude (degrees). |
[out] | gradx | x component of the gradient. |
[out] | grady | y component of the gradient. |
[out] | gradz | z component of the gradient. |
The gradients will only be computed if the CircularEngine object was created with this capability (e.g., via gradp = true in SphericalHarmonic::Circle). If not, gradx, etc., will not be touched.
Definition at line 72 of file dotnet/NETGeographicLib/CircularEngine.cpp.
|
private |
Definition at line 58 of file CircularEngine.h.