| MatrixDCreateIdentity Method |
Creates an identity matrix.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static MatrixD CreateIdentity(
int numberOfRows,
int numberOfColumns
)
Public Shared Function CreateIdentity (
numberOfRows As Integer,
numberOfColumns As Integer
) As MatrixD
public:
static MatrixD^ CreateIdentity(
int numberOfRows,
int numberOfColumns
)
static member CreateIdentity :
numberOfRows : int *
numberOfColumns : int -> MatrixD
Parameters
- numberOfRows
- Type: SystemInt32
The number of rows. - numberOfColumns
- Type: SystemInt32
The number of columns.
Return Value
Type:
MatrixDAn identity matrix.
Remarks
Elements in the main diagonal are set to 1. Other elements are set to 0.
See Also