Exemplo n.º 1
0
 /// <summary>
 /// Adds a matrix and a scalar.
 /// </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 sum.</returns>
 public static Matrix3D operator+(double s, Matrix3D a)
 {
     return(Matrix3D.Add(a, s));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds two matrices.
 /// </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 sum.</returns>
 public static Matrix3D operator+(Matrix3D a, Matrix3D b)
 {
     return(Matrix3D.Add(a, b));
 }