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