Skip to content

LiteFX::Math::Matrix::at

Returns the element at a specified position.

Synopses

Declared in <litefx/matrix.hpp>

Returns the element at a specified position.

constexpr scalar_type at(
    size_t row,
    size_t col) const noexcept;

» more...

Returns the element at a specified position.

constexpr scalar_type& at(
    size_t row,
    size_t col) noexcept;

» more...

Return Value

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

Parameters

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