diff --git a/include/omath/mat.hpp b/include/omath/mat.hpp index f73fb20..8b89a52 100644 --- a/include/omath/mat.hpp +++ b/include/omath/mat.hpp @@ -92,6 +92,12 @@ namespace omath return At(row, col); } + [[nodiscard]] + constexpr Type& operator[](const size_t row, const size_t col) const + { + return At(row, col); + } + constexpr Mat(Mat&& other) noexcept { m_data = std::move(other.m_data);