OrbitalElementsComputeTimeOfFlight Method |
Calculates the time of flight between two true anomalies.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public static double ComputeTimeOfFlight(
double initialTrueAnomaly,
double finalTrueAnomaly,
double radiusOfPeriapsis,
double eccentricity,
double gravitationalParameter
)
Public Shared Function ComputeTimeOfFlight (
initialTrueAnomaly As Double,
finalTrueAnomaly As Double,
radiusOfPeriapsis As Double,
eccentricity As Double,
gravitationalParameter As Double
) As Double
public:
static double ComputeTimeOfFlight(
double initialTrueAnomaly,
double finalTrueAnomaly,
double radiusOfPeriapsis,
double eccentricity,
double gravitationalParameter
)
static member ComputeTimeOfFlight :
initialTrueAnomaly : float *
finalTrueAnomaly : float *
radiusOfPeriapsis : float *
eccentricity : float *
gravitationalParameter : float -> float
Parameters
- initialTrueAnomaly
- Type: SystemDouble
The initial true anomaly (radians). - finalTrueAnomaly
- Type: SystemDouble
The final true anomaly (radians). - radiusOfPeriapsis
- Type: SystemDouble
The radius of periapsis (distance). - eccentricity
- Type: SystemDouble
The eccentricity of the orbit. - gravitationalParameter
- Type: SystemDouble
The gravitational parameter (distance cubed per time squared).
Return Value
Type:
DoubleThe time of flight (time).
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown when eccentricity is negative or radiusOfPeriapsis or gravitationalParameter is negative or zero
or if initialTrueAnomaly or initialTrueAnomaly are not within the valid range for the type of orbit; otherwise . |
Remarks The sign of the true anomaly indicates whether the position in orbit was measured before or after crossing periapsis.
See Also