Пример #1
0
        internal bool Approx(InteropQuaternion q)
        {
            var epsilon = 1e-6f;

            return(Math.Abs(x - q.x) < epsilon &&
                   Math.Abs(y - q.y) < epsilon &&
                   Math.Abs(z - q.z) < epsilon &&
                   Math.Abs(w - q.w) < epsilon);
        }
Пример #2
0
 public static Quaternion ToQuaternion(this InteropQuaternion q)
 {
     return(new Quaternion(q.x, q.y, q.z, q.w));
 }