| AnimationHelperComputeLinearVelocity Method |
Computes the linear velocity that moves an object from the current position to a
target position.
Namespace: DigitalRune.AnimationAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static Vector3F ComputeLinearVelocity(
Vector3F currentPosition,
Vector3F targetPosition,
float deltaTime
)
Public Shared Function ComputeLinearVelocity (
currentPosition As Vector3F,
targetPosition As Vector3F,
deltaTime As Single
) As Vector3F
public:
static Vector3F ComputeLinearVelocity(
Vector3F currentPosition,
Vector3F targetPosition,
float deltaTime
)
static member ComputeLinearVelocity :
currentPosition : Vector3F *
targetPosition : Vector3F *
deltaTime : float32 -> Vector3F
Parameters
- currentPosition
- Type: DigitalRune.Mathematics.AlgebraVector3F
The current position. - targetPosition
- Type: DigitalRune.Mathematics.AlgebraVector3F
The target position. - deltaTime
- Type: SystemSingle
The time over which the movement takes place (in seconds).
Return Value
Type:
Vector3F
The linear velocity vector. If an object is moved with this velocity starting at
currentPosition, it will arrive at
targetPosition
after
deltaTime seconds.
See Also