OrbitalElementsTryComputeTimeOfFlight Method |
Tries to calculate 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 bool TryComputeTimeOfFlight(
double initialTrueAnomaly,
double finalTrueAnomaly,
double radiusOfPeriapsis,
double eccentricity,
double gravitationalParameter,
out double timeOfFlight
)
Public Shared Function TryComputeTimeOfFlight (
initialTrueAnomaly As Double,
finalTrueAnomaly As Double,
radiusOfPeriapsis As Double,
eccentricity As Double,
gravitationalParameter As Double,
<OutAttribute> ByRef timeOfFlight As Double
) As Boolean
public:
static bool TryComputeTimeOfFlight(
double initialTrueAnomaly,
double finalTrueAnomaly,
double radiusOfPeriapsis,
double eccentricity,
double gravitationalParameter,
[OutAttribute] double% timeOfFlight
)
static member TryComputeTimeOfFlight :
initialTrueAnomaly : float *
finalTrueAnomaly : float *
radiusOfPeriapsis : float *
eccentricity : float *
gravitationalParameter : float *
timeOfFlight : float byref -> bool
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). - timeOfFlight
- Type: SystemDouble
On return,
the time of flight (time).
Return Value
Type:
Boolean if the time of flight could be calculated with the given elements; otherwise
.
Remarks The sign of the true anomaly indicates whether the position in orbit was measured before or after crossing periapsis.
See Also