Ejemplo n.º 1
0
 /// <summary>
 /// Adds a matrix and a scalar.
 /// </summary>
 /// <param name="a">A <see cref="Matrix2F"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="Matrix2F"/> instance containing the sum.</returns>
 public static Matrix2F operator+(float s, Matrix2F a)
 {
     return(Matrix2F.Add(a, s));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds two matrices.
 /// </summary>
 /// <param name="a">A <see cref="Matrix2F"/> instance.</param>
 /// <param name="b">A <see cref="Matrix2F"/> instance.</param>
 /// <returns>A new <see cref="Matrix2F"/> instance containing the sum.</returns>
 public static Matrix2F operator+(Matrix2F a, Matrix2F b)
 {
     return(Matrix2F.Add(a, b));
 }