Skip to content

LiteFX::Math::Matrix::operator[]

Returns an element of the matrix.

Synopsis

Declared in <litefx/matrix.hpp>

constexpr scalar_type operator[](
    size_t row,
    size_t col) const noexcept;

Return Value

The scalar value at the provided row and column.

Parameters

NameDescription
rowThe row of the element.
colThe column of the element.