Click or drag to resize

KeplerianElements Constructor (Cartesian, Cartesian, Double, Double, Double)

Initialize a set of classical Keplerian elements from a cartesian position and velocity.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public KeplerianElements(
	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 to use to create this set (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
InvalidOperationExceptionThe given elements must represent a closed orbit. The exception is thrown if the eccentricity is negative or not below unity or if the semimajor axis is not finitely positive. For other orbit types, use ModifiedKeplerianElements.
See Also