Click or drag to resize

KeplerianElements Constructor (MotionCartesian, 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 KeplerianElements(
	Motion<Cartesian> motion,
	double gravitationalParameter
)

Parameters

motion
Type: AGI.FoundationMotionCartesian
The cartesian position and velocity (distance and distance per time).
gravitationalParameter
Type: SystemDouble
The gravitational parameter for the central body (distance cubed per time squared).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe 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