WaypointPropagator.DetermineDuration Method |
Assuming constant acceleration, determines the duration from the provided parameters.
Namespace:
AGI.Foundation.Propagators
Assembly:
AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static double DetermineDuration(
double displacement,
double initialVelocity,
double finalVelocity
)
Public Shared Function DetermineDuration (
displacement As Double,
initialVelocity As Double,
finalVelocity As Double
) As Double
public:
static double DetermineDuration(
double displacement,
double initialVelocity,
double finalVelocity
)
static member DetermineDuration :
displacement : float *
initialVelocity : float *
finalVelocity : float -> float
Parameters
- displacement
- Type: System.Double
The total displacement between the initial and final points (distance). - initialVelocity
- Type: System.Double
The velocity at the initial point (distance per time). - finalVelocity
- Type: System.Double
The velocity at the final point (distance per time).
Return Value
Type:
DoubleThe total duration between the initial and final points (time).
Remarks- The displacement should not be zero.
- The initial and final velocities should have the same sign.
- Either the initial or the final velocity may be zero.
See Also