Interface IFloatMatrix
Represents a read-only view of a two-dimensional matrix of float values.
public interface IFloatMatrix
Properties
Height
Gets the height of the matrix.
int Height { get; }
Property Value
this[int, int]
Gets the value at the specified column and row.
float this[int x, int y] { get; }
Parameters
Property Value
this[int2]
Gets the value at the specified 2D index.
float this[int2 index] { get; }
Parameters
indexint2The column (x) and row (y) index.
Property Value
Length
Gets the total number of values in the matrix.
int Length { get; }
Property Value
Values
Gets the matrix values as a flat, row-major sequence.
IEnumerable<float> Values { get; }
Property Value
Width
Gets the width of the matrix.
int Width { get; }
Property Value
Methods
IsValid()
Returns whether this matrix is in a valid state (dimensions and value array are consistent).
bool IsValid()
Returns
SetFrom(IFloatMatrix)
Sets the values and dimensions of this matrix from another matrix.
void SetFrom(IFloatMatrix other)
Parameters
otherIFloatMatrixThe source matrix to copy from.