Click or drag to resize

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: 19.1.398.0 (19.1.398.0)
Syntax
public ModifiedKeplerianElements(
	Cartesian position,
	Cartesian velocity,
	double gravitationalParameter,
	double eccentricityTolerance,
	double inclinationTolerance
)

Parameters

position
Type: AGI.Foundation.CoordinatesCartesian
The cartesian position (distance).
velocity
Type: AGI.Foundation.CoordinatesCartesian
The cartesian velocity (distance per time).
gravitationalParameter
Type: SystemDouble
The gravitational parameter for the central body (distance cubed per time squared).
eccentricityTolerance
Type: SystemDouble
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: SystemDouble
The tolerance which defines the value of 'zero' to use when checking whether the inclination is zero below which the orbit is equatorial.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if the position is nearly zero (< Epsilon8).
ArgumentOutOfRangeExceptionThrown if 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