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