/// <summary> /// Executes a component-wise - (subtract). /// </summary> public static int2x3 CompSub(int2x3 A, int2x3 B) => new int2x3(A.m00 - B.m00, A.m01 - B.m01, A.m02 - B.m02, A.m10 - B.m10, A.m11 - B.m11, A.m12 - B.m12);
/// <summary> /// Executes a component-wise + (add). /// </summary> public static int2x3 CompAdd(int2x3 A, int2x3 B) => new int2x3(A.m00 + B.m00, A.m01 + B.m01, A.m02 + B.m02, A.m10 + B.m10, A.m11 + B.m11, A.m12 + B.m12);
/// <summary> /// Executes a component-wise * (multiply). /// </summary> public static int2x3 CompMul(int2x3 A, int2x3 B) => new int2x3(A.m00 * B.m00, A.m01 * B.m01, A.m02 * B.m02, A.m10 * B.m10, A.m11 * B.m11, A.m12 * B.m12);
/// <summary> /// Executes a component-wise / (divide). /// </summary> public static int2x3 CompDiv(int2x3 A, int2x3 B) => new int2x3(A.m00 / B.m00, A.m01 / B.m01, A.m02 / B.m02, A.m10 / B.m10, A.m11 / B.m11, A.m12 / B.m12);
/// <summary> /// Returns true iff this equals rhs component-wise. /// </summary> public bool Equals(int2x3 rhs) => (((m00.Equals(rhs.m00) && m01.Equals(rhs.m01)) && m02.Equals(rhs.m02)) && ((m10.Equals(rhs.m10) && m11.Equals(rhs.m11)) && m12.Equals(rhs.m12)));