MulUnsafe() public static method

public static MulUnsafe ( Rot q, Rot r, Rot result ) : void
q Rot
r Rot
result Rot
return void
Esempio n. 1
0
 public static void MulToOutUnsafe(Transform A, Transform B, Transform result)
 {
     Debug.Assert(result != B);
     Debug.Assert(result != A);
     Rot.MulUnsafe(A.Q, B.Q, result.Q);
     Rot.MulToOutUnsafe(A.Q, B.P, result.P);
     result.P.AddLocal(A.P);
 }
Esempio n. 2
0
        public static Transform Mul(Transform A, Transform B)
        {
            Transform C = new Transform();

            Rot.MulUnsafe(A.Q, B.Q, C.Q);
            Rot.MulToOutUnsafe(A.Q, B.P, C.P);
            C.P.AddLocal(A.P);
            return(C);
        }