Exemplo n.º 1
0
 /// <summary>
 /// Adds a matrix and a scalar.
 /// </summary>
 /// <param name="matrix">A <see cref="Matrix3"/> instance.</param>
 /// <param name="scalar">A single-precision floating-point number.</param>
 /// <returns>A new <see cref="Matrix3"/> instance containing the sum.</returns>
 public static Matrix3 operator +(float scalar, Matrix3 matrix)
 {
     return(Matrix3.Add(matrix, scalar));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds two matrices.
 /// </summary>
 /// <param name="left">A <see cref="Matrix3"/> instance.</param>
 /// <param name="right">A <see cref="Matrix3"/> instance.</param>
 /// <returns>A new <see cref="Matrix3"/> instance containing the sum.</returns>
 public static Matrix3 operator +(Matrix3 left, Matrix3 right)
 {
     return(Matrix3.Add(left, right));;
 }