Skip to content

Latest commit

 

History

History
98 lines (61 loc) · 1.97 KB

d3dxquaterniontoaxisangle.md

File metadata and controls

98 lines (61 loc) · 1.97 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
D3DXQuaternionToAxisAngle function (D3dx9math.h) - Computes a quaternion's axis and angle of rotation.
6efd0a68-7641-403e-8ae2-c715b705b36e
D3DXQuaternionToAxisAngle function (D3dx9math.h)
reference
05/31/2018
APIRef
kbSyntax
D3DXQuaternionToAxisAngle
LibDef
d3dx9.lib
d3dx9.dll

D3DXQuaternionToAxisAngle function (D3dx9math.h)

Note

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

Computes a quaternion's axis and angle of rotation.

Syntax

void D3DXQuaternionToAxisAngle(
  _In_    const D3DXQUATERNION *pQ,
  _Inout_       D3DXVECTOR3    *pAxis,
  _Inout_       FLOAT          *pAngle
);

Parameters

pQ [in]

Type: const D3DXQUATERNION*

Pointer to the source D3DXQUATERNION structure.

pAxis [in, out]

Type: D3DXVECTOR3*

This function returns a pointer to a D3DXVECTOR3 structure that identifies the quaternion's axis of rotation.

pAngle [in, out]

Type: FLOAT*

This function returns a pointer to a FLOAT value that identifies the quaternion's angle of rotation in radians.

Return value

No return value.

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