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