示例#1
0
        public static float Angle(Quaternion a, Quaternion b)
        {
            float f = Quaternion.Dot(a, b);

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