/// <summary> /// Multiplies this quaternion by the inverse of quaternion q1 and places /// the value into this quaternion. /// </summary> /// <remarks> /// Multiplies this quaternion by the inverse of quaternion q1 and places /// the value into this quaternion. The value of the argument quaternion /// is preserved (this = this * q^-1). /// </remarks> /// <param name="q1">the other quaternion</param> public void MulInverse(Quat4d q1) { Quat4d tempQuat = new Quat4d(q1); tempQuat.Inverse(); this.Mul(tempQuat); }
/// <summary> /// Multiplies quaternion q1 by the inverse of quaternion q2 and places /// the value into this quaternion. /// </summary> /// <remarks> /// Multiplies quaternion q1 by the inverse of quaternion q2 and places /// the value into this quaternion. The value of both argument quaternions /// is preservered (this = q1 * q2^-1). /// </remarks> /// <param name="q1">the first quaternion</param> /// <param name="q2">the second quaternion</param> public void MulInverse(Quat4d q1, Quat4d q2) { Quat4d tempQuat = new Quat4d(q2); tempQuat.Inverse(); this.Mul(q1, tempQuat); }