Click or drag to resize
DigitalRuneMatrixDAdd Method
Adds two matrices.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static MatrixD Add(
	MatrixD matrix1,
	MatrixD matrix2
)

Parameters

matrix1
Type: DigitalRune.Mathematics.AlgebraMatrixD
The first matrix.
matrix2
Type: DigitalRune.Mathematics.AlgebraMatrixD
The second Matrix.

Return Value

Type: MatrixD
The sum of the two matrices.
Exceptions
ExceptionCondition
ArgumentNullExceptionmatrix1 or matrix2 is .
ArgumentException The numbers of rows or columns of the matrices do not match.
See Also