Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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));;
 }
Exemple #3
0
 /// <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));
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
		/// <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);
		}