/// <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)); }
/// <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)); }
/// <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));; }
/// <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)); }