public static Matrix2x3 Subtract(Matrix2x3 left, Matrix2x2 right) { Matrix2x3 result; Subtract(ref left, ref right, out result); return(result); }
public static Matrix2x3 Add(Matrix2x3 left, Matrix2x2 right) { Matrix2x3 result; Add(ref left, ref right, out result); return(result); }
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; }
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; }
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; }
/// <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); }
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; }