From 4a7a63193208ff23fb61b81f9074718ee3c09024 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 11 Apr 2025 23:57:56 +0300 Subject: [PATCH] added const method to mat --- include/omath/mat.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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);