Click or drag to resize
DigitalRuneQuaternionDInvert Method
Inverts the quaternion.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public void Invert()
Exceptions
ExceptionCondition
MathematicsException The length of the quaternion is zero. The quaternion cannot be inverted.
Remarks

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.

See Also