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