Table of Contents

Constructor MatrixFloat

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

MatrixFloat(int, int, float)

Initializes a new instance of the MatrixFloat class with the specified dimensions and fills the matrix with the given initial value.

public MatrixFloat(int width, int height, float initialValue)

Parameters

width int

The width of the matrix.

height int

The height of the matrix.

initialValue float

The value used to initialize all elements.

Exceptions

ArgumentException

width or height is negative.

MatrixFloat(int, int, float[])

Initializes a new instance of the MatrixFloat class.

public MatrixFloat(int width, int height, float[] values = null)

Parameters

width int

The width of the matrix.

height int

The height of the matrix.

values float[]

The values to initialize the matrix with. If null, or omitted, the matrix is initialized with zeros.

Exceptions

ArgumentException

width or height is negative.