Skip to content

Latest commit

 

History

History
101 lines (62 loc) · 2.12 KB

d3d10-d3dxquaternioninverse.md

File metadata and controls

101 lines (62 loc) · 2.12 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
D3DXQuaternionInverse function (D3DX10Math.h) - Conjugates and renormalizes a quaternion.
8e1bba91-8895-43a2-805b-1368050f8e82
D3DXQuaternionInverse function (D3DX10Math.h)
reference
05/31/2018
APIRef
kbSyntax
D3DXQuaternionInverse
LibDef
D3DX10.lib
D3DX10.dll

D3DXQuaternionInverse function (D3DX10Math.h)

Note

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

Conjugates and renormalizes a quaternion.

Syntax

D3DXQUATERNION* D3DXQuaternionInverse(
  _Inout_       D3DXQUATERNION *pOut,
  _In_    const D3DXQUATERNION *pQ
);

Parameters

pOut [in, out]

Type: D3DXQUATERNION*

Pointer to the D3DXQUATERNION that is the result of the operation.

pQ [in]

Type: const D3DXQUATERNION*

Pointer to the source D3DXQUATERNION structure.

Return value

Type: D3DXQUATERNION*

Pointer to a D3DXQUATERNION structure that is the inverse quaternion of the quaternion.

Remarks

A unit quaternion, is defined by:
Q == (cos(theta), sin(theta) * v) where |v| = 1
The natural logarithm of Q is, ln(Q) = (0, theta * v)

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXQuaternionInverse function can be used as a parameter for another function.

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

Requirements

Requirement Value
Header
D3DX10Math.h
Library
D3DX10.lib

See also

Math Functions