コード例 #1
0
 /// <summary>
 /// Adds a matrix and a scalar.
 /// </summary>
 /// <param name="matrix">A <see cref="Matrix4D"/> instance.</param>
 /// <param name="scalar">A double-precision floating-point number.</param>
 /// <returns>A new <see cref="Matrix4D"/> instance containing the sum.</returns>
 public static Matrix4D operator +(double scalar, Matrix4D matrix)
 {
     return(Matrix4D.Add(matrix, scalar));
 }
コード例 #2
0
ファイル: Matrix4D.cs プロジェクト: Poehavshiy/Interpolator
 /// <summary>
 /// Adds a matrix and a scalar.
 /// </summary>
 /// <param name="a">A <see cref="Matrix4D"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="Matrix4D"/> instance containing the sum.</returns>
 public static Matrix4D operator+(double s, Matrix4D a)
 {
     return(Matrix4D.Add(a, s));
 }
コード例 #3
0
 /// <summary>
 /// Adds two matrices.
 /// </summary>
 /// <param name="left">A <see cref="Matrix4D"/> instance.</param>
 /// <param name="right">A <see cref="Matrix4D"/> instance.</param>
 /// <returns>A new <see cref="Matrix4D"/> instance containing the sum.</returns>
 public static Matrix4D operator +(Matrix4D left, Matrix4D right)
 {
     return(Matrix4D.Add(left, right));;
 }
コード例 #4
0
ファイル: Matrix4D.cs プロジェクト: Poehavshiy/Interpolator
 /// <summary>
 /// Adds two matrices.
 /// </summary>
 /// <param name="a">A <see cref="Matrix4D"/> instance.</param>
 /// <param name="b">A <see cref="Matrix4D"/> instance.</param>
 /// <returns>A new <see cref="Matrix4D"/> instance containing the sum.</returns>
 public static Matrix4D operator+(Matrix4D a, Matrix4D b)
 {
     return(Matrix4D.Add(a, b));
 }