Click or drag to resize

MatrixGetMatrix Method (Int32, Int32, Int32, Int32)

Gets a new matrix with the values of the specified subset of this matrix.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public Matrix GetMatrix(
	int firstRow,
	int numberOfRows,
	int firstColumn,
	int numberOfColumns
)

Parameters

firstRow
Type: SystemInt32
Inclusive initial index of rows to output from this matrix.
numberOfRows
Type: SystemInt32
Number of rows to output from this matrix.
firstColumn
Type: SystemInt32
Inclusive initial index of columns to output from this matrix.
numberOfColumns
Type: SystemInt32
Number of columns to output from this matrix.

Return Value

Type: Matrix
A new matrix with the values of the submatrix occurring between the specified bounds.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when firstRow, numberOfRows, firstColumn, or numberOfColumns is less than 0.
ArgumentException Thrown when firstRow plus numberOfRows is greater than the row dimension of this matrix, or when firstColumn plus numberOfColumns is greater than the column dimension of this matrix.
See Also