Skip to content

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

Returns an element of the matrix.

Synopses

Declared in <litefx/matrix.hpp>

Returns an element of the matrix.

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

» more...

Returns an element of the matrix.

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

» more...

Returns an element of the matrix.

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

» more...

Returns an element of the matrix.

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

» more...

Return Value

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

Parameters

NameDescription
positionThe row and column position of the matrix element.
rowThe row of the element.
colThe column of the element.