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) noexcept;

Return Value

A reference of the scalar value at the provided row and column.

Parameters

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