| MatrixFCreateIdentity 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 MatrixF CreateIdentity(
int numberOfRows,
int numberOfColumns
)
Public Shared Function CreateIdentity (
numberOfRows As Integer,
numberOfColumns As Integer
) As MatrixF
public:
static MatrixF^ CreateIdentity(
int numberOfRows,
int numberOfColumns
)
static member CreateIdentity :
numberOfRows : int *
numberOfColumns : int -> MatrixF
Parameters
- numberOfRows
- Type: SystemInt32
The number of rows. - numberOfColumns
- Type: SystemInt32
The number of columns.
Return Value
Type:
MatrixFAn identity matrix.
Remarks
Elements in the main diagonal are set to 1. Other elements are set to 0.
See Also