Microsoft DirectX 8.1 (C++) |
Conjugates and renormalizes a quaternion.
D3DXQUATERNION* D3DXQuaternionInverse( D3DXQUATERNION* pOut, CONST D3DXQUATERNION* pQ );
Pointer to a D3DXQUATERNION structure that is the inverse quaternion of the quaternion.
A unit quaternion, Q == (cos(theta), sin(theta) * v) The inverse of Q is, Inv(Q) = Conjugate(Q)/LengthSq(Q)
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.
Header: Declared in D3dx8math.h.
Import Library: Use D3dx8.lib.