ModifiedKeplerianElements Constructor (Cartesian, Cartesian, Double, Double, Double) |
Initializes a new instance from the specified
Cartesian motion and gravitational constant.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic ModifiedKeplerianElements(
Cartesian position,
Cartesian velocity,
double gravitationalParameter,
double eccentricityTolerance,
double inclinationTolerance
)
Public Sub New (
position As Cartesian,
velocity As Cartesian,
gravitationalParameter As Double,
eccentricityTolerance As Double,
inclinationTolerance As Double
)
public:
ModifiedKeplerianElements(
Cartesian position,
Cartesian velocity,
double gravitationalParameter,
double eccentricityTolerance,
double inclinationTolerance
)
new :
position : Cartesian *
velocity : Cartesian *
gravitationalParameter : float *
eccentricityTolerance : float *
inclinationTolerance : float -> ModifiedKeplerianElements
Parameters
- position
- Type: AGI.Foundation.Coordinates.Cartesian
The cartesian position (distance). - velocity
- Type: AGI.Foundation.Coordinates.Cartesian
The cartesian velocity (distance per time). - gravitationalParameter
- Type: System.Double
The gravitational parameter for the central body (distance cubed per time squared). - eccentricityTolerance
- Type: System.Double
The tolerance which defines the value of 'zero' to use when checking whether the
eccentricity is zero, below which the orbit is circular.
- inclinationTolerance
- Type: System.Double
The tolerance which defines the value of 'zero' to use when checking whether the
inclination is zero, below which the orbit is equatorial.
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException |
Thrown when the magnitude of position is nearly zero (less than Epsilon8),
or when either eccentricityTolerance or inclinationTolerance is negative.
|
Remarks
If the orbit eccentricity turns out to be less than
Epsilon12,
the argument of periapsis will be aligned with the ascending node (the value is set to zero).
See Also