Exemple #1
0
        //Operator
        public static Matrix3x3 operator +(Matrix3x3 a, Matrix3x3 b)
        {
#if IMOET_UNSAFE
            var m = a;
            UMath.MassAdd(a.Ptr, b.Ptr, m.Ptr, 9);
            return(m);
#else
            return(UMath.AddMatrix(a, b));
#endif
        }
Exemple #2
0
        //Operator
        public static Matrix4x4 operator +(Matrix4x4 a, Matrix4x4 b)
        {
#if IMOET_UNSAFE
            Matrix4x4 m = new Matrix4x4();
            UMath.MassAdd(a.Ptr, b.Ptr, m.Ptr, 9);
            return(m);
#else
            return(UMath.AddMatrix(a, b));
#endif
        }