Skip to content

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

Returns an element of the matrix.

Synopsis

Declared in <litefx/matrix.hpp>

constexpr scalar_type& operator[](std::pair<size_t, size_t> position) noexcept;

Return Value

A reference of the scalar value at the provided position.

Parameters

NameDescription
positionThe row and column position of the matrix element.