class MatrixNxM

template<int N, int M>

Class representing a NxM matrix.

Public

Constructors

MatrixNxM<N, M>

MatrixNxM<N, M>() = default

MatrixNxM<N, M>

MatrixNxM<N, M>(const MatrixNxM<N, M> &) = default

MatrixNxM<N, M>

explicit MatrixNxM<N, M>(float data[N * M])

Methods

Transpose

MatrixNxM<M, N> Transpose() const

Returns a transpose of the matrix (switched columns and rows).

Fields

Data

float[N][M] Data

Operators

operator=

MatrixNxM<N, M> &operator=(const MatrixNxM<N, M> &) = default

operator[]

float *operator[](u32 row) const

Returns a row of the matrix.

operator==

bool operator==(const MatrixNxM<N, M> &rhs) const

operator!=

bool operator!=(const MatrixNxM<N, M> &rhs) const