Beispiel #1
0
        public static float Angle(QuaternionRightHand a, QuaternionRightHand b)
        {
            float f = QuaternionRightHand.Dot(a, b);

            return((float)Mathf.Acos(Mathf.Min(Mathf.Abs(f), 1f)) * 2f * 57.29578f);
        }
Beispiel #2
0
 public static bool operator !=(QuaternionRightHand lhs, QuaternionRightHand rhs)
 {
     return(QuaternionRightHand.Dot(lhs, rhs) <= 0.999999f);
 }