Exemplo n.º 1
0
        public static Radian GetAngle(Quat v1, Quat v2)
        {
            float a = (((v1.X * v2.X) + (v1.Y * v2.Y)) + (v1.Z * v2.Z)) + (v1.W * v2.W);

            return(new Radian(MathFunctions.ACos(a) * 2f));
        }
Exemplo n.º 2
0
 static Quat()
 {
     Identity = new Quat(0f, 0f, 0f, 1f);
 }
Exemplo n.º 3
0
 public static Quat Slerp(Quat from, Quat to, float t)
 {
     Slerp(ref from, ref to, t, out Quat quat);
     return(quat);
 }
Exemplo n.º 4
0
 public static void Multiply(ref Vec3 v, ref Quat q, out Vec3 result)
 {
     Multiply(ref q, ref v, out result);
 }