Esempio n. 1
0
        public static Matrix2x3 Subtract(Matrix2x3 left, Matrix2x2 right)
        {
            Matrix2x3 result;

            Subtract(ref left, ref right, out result);
            return(result);
        }
Esempio n. 2
0
        public static Matrix2x3 Add(Matrix2x3 left, Matrix2x2 right)
        {
            Matrix2x3 result;

            Add(ref left, ref right, out result);
            return(result);
        }
Esempio n. 3
0
        public static void Copy(ref Matrix2x2 source, ref Matrix2x3 dest)
        {
            dest.m00 = source.m00;
            dest.m01 = source.m01;

            dest.m10 = source.m10;
            dest.m11 = source.m11;
        }
Esempio n. 4
0
        public static void Subtract(ref Matrix2x3 left, ref Matrix2x2 right, out Matrix2x3 result)
        {
            result.m00 = left.m00 - right.m00;
            result.m01 = left.m01 - right.m01;
            result.m02 = left.m02;

            result.m10 = left.m10 - right.m10;
            result.m11 = left.m11 - right.m11;
            result.m12 = left.m12;
        }
Esempio n. 5
0
        public static void Add(ref Matrix2x3 left, ref Matrix2x2 right, out Matrix2x3 result)
        {
            result.m00 = left.m00 + right.m00;
            result.m01 = left.m01 + right.m01;
            result.m02 = left.m02;

            result.m10 = left.m10 + right.m10;
            result.m11 = left.m11 + right.m11;
            result.m12 = left.m12;
        }
Esempio n. 6
0
        /// <summary>
        /// Used to multiply (concatenate) a Matrix2x3 and a Matrix2x2.
        /// </summary>
        /// <param name="left"></param>
        /// <param name="right"></param>
        /// <returns></returns>
        public static Matrix2x3 Multiply(Matrix2x3 left, Matrix2x2 right)
        {
            Matrix2x3 result;

            result.m00 = left.m00 * right.m00 + left.m01 * right.m10;
            result.m01 = left.m00 * right.m01 + left.m01 * right.m11;
            result.m02 = left.m02;

            result.m10 = left.m10 * right.m00 + left.m11 * right.m10;
            result.m11 = left.m10 * right.m01 + left.m11 * right.m11;
            result.m12 = left.m12;

            return(result);
        }
Esempio n. 7
0
        public static void Multiply(ref Matrix2x3 left, ref Matrix2x2 right, out Matrix2x3 result)
        {
            Scalar m00 = left.m00 * right.m00 + left.m01 * right.m10;
            Scalar m01 = left.m00 * right.m01 + left.m01 * right.m11;

            Scalar m10 = left.m10 * right.m00 + left.m11 * right.m10;
            Scalar m11 = left.m10 * right.m01 + left.m11 * right.m11;


            result.m00 = m00;
            result.m01 = m01;
            result.m02 = left.m02;

            result.m10 = m10;
            result.m11 = m11;
            result.m12 = left.m12;
        }