Microsoft DirectX 8.1 (Visual Basic) |
Conjugates and renormalizes a quaternion.
D3DXQuaternionInverse( _ QOut As D3DQUATERNION, _ Q As D3DQUATERNION)
If the function fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DERR_OUTOFVIDEOMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
For a unit quaternion, Q == (cos(theta), sin(theta) * v) The inverse of Q is, Inv(Q) = Conjugate(Q)/LengthSq(Q)