/// <summary> /// Subtract two quaternions. /// </summary> /// <param name="value1">The first quaternion.</param> /// <param name="value2">The second quaternion.</param> /// <returns>The difference of both quaternions.</returns> #region public static FP operator -(JQuaternion value1, JQuaternion value2) public static FPQuaternion operator -(FPQuaternion value1, FPQuaternion value2) { FPQuaternion result; FPQuaternion.Subtract(ref value1, ref value2, out result); return(result); }
/// <summary> /// Quaternions are subtracted. /// </summary> /// <param name="quaternion1">The first quaternion.</param> /// <param name="quaternion2">The second quaternion.</param> /// <returns>The difference of both quaternions.</returns> #region public static JQuaternion Subtract(JQuaternion quaternion1, JQuaternion quaternion2) public static FPQuaternion Subtract(FPQuaternion quaternion1, FPQuaternion quaternion2) { FPQuaternion result; FPQuaternion.Subtract(ref quaternion1, ref quaternion2, out result); return(result); }