Ejemplo n.º 1
0
 /// <summary>
 /// Subtracts a scalar from a matrix.
 /// </summary>
 /// <param name="matrix">A <see cref="Matrix2"/> instance.</param>
 /// <param name="scalar">A single-precision floating-point number.</param>
 /// <returns>A new <see cref="Matrix2"/> instance containing the difference.</returns>
 public static Matrix2 operator -(Matrix2 matrix, float scalar)
 {
     return(Matrix2.Subtract(matrix, scalar));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Subtracts a matrix from a matrix.
 /// </summary>
 /// <param name="left">A <see cref="Matrix2"/> instance.</param>
 /// <param name="right">A <see cref="Matrix2"/> instance.</param>
 /// <returns>A new <see cref="Matrix2"/> instance containing the difference.</returns>
 public static Matrix2 operator -(Matrix2 left, Matrix2 right)
 {
     return(Matrix2.Subtract(left, right));
 }