D3DXQuaternionDot function

Returns the dot product of two quaternions.

Syntax


FLOAT D3DXQuaternionDot(
  _In_ const D3DXQUATERNION *pQ1,
  _In_ const D3DXQUATERNION *pQ2
);

Parameters

pQ1 [in]

Type: const D3DXQUATERNION*

Pointer to a source D3DXQUATERNION structure.

pQ2 [in]

Type: const D3DXQUATERNION*

Pointer to a source D3DXQUATERNION structure.

Return value

Type: FLOAT

The dot product of two quaternions.

Remarks

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

Requirements

Header

D3dx9math.h

Library

D3dx9.lib

See also

Math Functions

 

 

Show: