Пример #1
0
 /// <summary>
 /// Executes a component-wise - (subtract).
 /// </summary>
 public static float2x3 CompSub(float2x3 A, float2x3 B) => new float2x3(A.m00 - B.m00, A.m01 - B.m01, A.m02 - B.m02, A.m10 - B.m10, A.m11 - B.m11, A.m12 - B.m12);
Пример #2
0
 /// <summary>
 /// Executes a component-wise + (add).
 /// </summary>
 public static float2x3 CompAdd(float2x3 A, float2x3 B) => new float2x3(A.m00 + B.m00, A.m01 + B.m01, A.m02 + B.m02, A.m10 + B.m10, A.m11 + B.m11, A.m12 + B.m12);
Пример #3
0
 /// <summary>
 /// Executes a component-wise * (multiply).
 /// </summary>
 public static float2x3 CompMul(float2x3 A, float2x3 B) => new float2x3(A.m00 * B.m00, A.m01 * B.m01, A.m02 * B.m02, A.m10 * B.m10, A.m11 * B.m11, A.m12 * B.m12);
Пример #4
0
 /// <summary>
 /// Executes a component-wise / (divide).
 /// </summary>
 public static float2x3 CompDiv(float2x3 A, float2x3 B) => new float2x3(A.m00 / B.m00, A.m01 / B.m01, A.m02 / B.m02, A.m10 / B.m10, A.m11 / B.m11, A.m12 / B.m12);
Пример #5
0
 /// <summary>
 /// Returns true iff this equals rhs component-wise.
 /// </summary>
 public bool Equals(float2x3 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)));