KeplerianElements Constructor (Cartesian, Cartesian, Double) |
Initialize a set of classical Keplerian elements from a
Cartesian position and velocity.
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.2.419.0 (24.2.419.0)
Syntax public KeplerianElements(
Cartesian position,
Cartesian velocity,
double gravitationalParameter
)
Public Sub New (
position As Cartesian,
velocity As Cartesian,
gravitationalParameter As Double
)
public:
KeplerianElements(
Cartesian position,
Cartesian velocity,
double gravitationalParameter
)
new :
position : Cartesian *
velocity : Cartesian *
gravitationalParameter : float -> KeplerianElements
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).
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