Click or drag to resize
DigitalRuneAnimationHelperComputeAngularVelocity Method (QuaternionF, QuaternionF, Single)
Computes the angular velocity that rotates an object from the current orientation to a target orientation.

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public static Vector3F ComputeAngularVelocity(
	QuaternionF currentOrientation,
	QuaternionF targetOrientation,
	float deltaTime
)

Parameters

currentOrientation
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The current orientation.
targetOrientation
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The target orientation.
deltaTime
Type: SystemSingle
The time over which the rotation takes place (in seconds).

Return Value

Type: Vector3F
The angular velocity vector. If an object is rotated with this velocity starting at currentOrientation, it will arrive at targetOrientation after deltaTime seconds.
See Also