D3DXQuaternionLength function

Note

The D3DX utility library is deprecated. We recommend that you use DirectXMath instead.

Returns the length of a quaternion.

Syntax

FLOAT D3DXQuaternionLength(
  _In_ const D3DXQUATERNION *pQ
);

Parameters

pQ [in]

Type: const D3DXQUATERNION*

Pointer to the source D3DXQUATERNION structure.

Return value

Type: FLOAT

The quaternion's length.

Remarks

Use D3DXQuaternionNormalize for any quaternion input that is not already normalized.

Requirements

Requirement Value
Header
D3dx9math.h
Library
D3dx9.lib

See also

Math Functions

D3DXQuaternionLengthSq