KeplerianElements Constructor (MotionCartesian, Double) |
Initializes a new instance from the specified
Cartesian motion and gravitational parameter.
The given elements must represent a closed orbit.
For other orbit types, use
ModifiedKeplerianElements.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public KeplerianElements(
Motion<Cartesian> motion,
double gravitationalParameter
)
Public Sub New (
motion As Motion(Of Cartesian),
gravitationalParameter As Double
)
public:
KeplerianElements(
Motion<Cartesian> motion,
double gravitationalParameter
)
new :
motion : Motion<Cartesian> *
gravitationalParameter : float -> KeplerianElements
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 Exception | Condition |
---|
ArgumentOutOfRangeException |
Thrown when the eccentricity is negative or not below unity or if the semimajor axis is not finitely positive.
|
See Also