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;
Returns an element of the matrix.
constexpr scalar_type& operator[](std::pair<size_t, size_t> position) noexcept;
Returns an element of the matrix.
constexpr scalar_type operator[](
size_t row,
size_t col) const noexcept;
Returns an element of the matrix.
constexpr scalar_type& operator[](
size_t row,
size_t col) noexcept;
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¶
| Name | Description |
|---|---|
| position | The row and column position of the matrix element. |
| row | The row of the element. |
| col | The column of the element. |