| QuaternionFGetAngle Method |
Calculates the angle between two quaternions.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static float GetAngle(
QuaternionF quaternion1,
QuaternionF quaternion2
)
Public Shared Function GetAngle (
quaternion1 As QuaternionF,
quaternion2 As QuaternionF
) As Single
public:
static float GetAngle(
QuaternionF quaternion1,
QuaternionF quaternion2
)
static member GetAngle :
quaternion1 : QuaternionF *
quaternion2 : QuaternionF -> float32
Parameters
- quaternion1
- Type: DigitalRune.Mathematics.AlgebraQuaternionF
The first quaternion. - quaternion2
- Type: DigitalRune.Mathematics.AlgebraQuaternionF
The second quaternion.
Return Value
Type:
SingleThe angle between the given vectors, such that 0 ≤ angle ≤ π.
Remarks
The quaternions are interpreted as orientations. The result is the angle of the quaternion
which would rotate an object in the first orientation to the second orientation.
The result is only valid for unit quaternions.
See Also