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