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