OrbitalElementsConvertMeanAnomalyToTimeSincePreviousPeriapsis Method |
Converts the mean anomaly to the time of flight since the previous periapsis passage in seconds. The value returned is positive and, for closed orbits, periodic.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static double ConvertMeanAnomalyToTimeSincePreviousPeriapsis(
double meanAnomaly,
double radiusOfPeriapsis,
double eccentricity,
double gravitationalParameter
)
Public Shared Function ConvertMeanAnomalyToTimeSincePreviousPeriapsis (
meanAnomaly As Double,
radiusOfPeriapsis As Double,
eccentricity As Double,
gravitationalParameter As Double
) As Double
public:
static double ConvertMeanAnomalyToTimeSincePreviousPeriapsis(
double meanAnomaly,
double radiusOfPeriapsis,
double eccentricity,
double gravitationalParameter
)
static member ConvertMeanAnomalyToTimeSincePreviousPeriapsis :
meanAnomaly : float *
radiusOfPeriapsis : float *
eccentricity : float *
gravitationalParameter : float -> float
Parameters
- meanAnomaly
- Type: SystemDouble
The mean anomaly (radians). - radiusOfPeriapsis
- Type: SystemDouble
The radius of periapsis. - eccentricity
- Type: SystemDouble
The eccentricity of the orbit. - gravitationalParameter
- Type: SystemDouble
The gravitational parameter of the central body being orbited.
Return Value
Type:
DoubleThe time since the previous periapsis passage.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown when eccentricity is negative or radiusOfPeriapsis or gravitationalParameter is negative or zero
or if the orbit is open (parabolic or hyperbolic) and meanAnomaly is negative or zero. |
See Also