/// <summary> /// Adds a matrix and a scalar. /// </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 sum.</returns> public static Matrix2D operator +(double scalar, Matrix2D matrix) { return(Matrix2D.Add(matrix, scalar)); }
/// <summary> /// Adds two matrices. /// </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 sum.</returns> public static Matrix2D operator +(Matrix2D left, Matrix2D right) { return(Matrix2D.Add(left, right));; }
/// <summary> /// Adds two matrices. /// </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 sum.</returns> public static Matrix2D operator+(Matrix2D a, Matrix2D b) { return(Matrix2D.Add(a, b)); }
/// <summary> /// Adds a matrix and a scalar. /// </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 sum.</returns> public static Matrix2D operator+(double s, Matrix2D a) { return(Matrix2D.Add(a, s)); }
/// <summary> /// Adds a matrix and a scalar. /// </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 sum.</returns> public static Matrix2D operator+(Matrix2D a, double s) { return Matrix2D.Add(a,s); }