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