QuaternionFInvert Method |
Namespace: DigitalRune.Mathematics.Algebra
Exception | Condition |
---|---|
MathematicsException | The length of the quaternion is zero. The quaternion cannot be inverted. |
The (multiplicative) inverse of a quaternion is calculated by using the following formula:
q-1 = q* / (q q*) = q* / N(q)
The inverse of a unit quaternion is the same as its conjugate. You might consider using the method Conjugate because it is faster than Invert.