diff --git a/include/omath/Angle.hpp b/include/omath/Angle.hpp index 4ae0dee..e5af33f 100644 --- a/include/omath/Angle.hpp +++ b/include/omath/Angle.hpp @@ -19,7 +19,7 @@ namespace omath class Angle { Type m_angle; - constexpr Angle(const Type& degrees) + constexpr explicit Angle(const Type& degrees) { if constexpr (flags == AngleFlags::Normalized) m_angle = angles::WrapAngle(degrees, min, max); diff --git a/include/omath/Matrix.hpp b/include/omath/Matrix.hpp index 6e7e409..2f23e40 100644 --- a/include/omath/Matrix.hpp +++ b/include/omath/Matrix.hpp @@ -38,10 +38,7 @@ namespace omath [[nodiscard]] - float& operator[](size_t row, size_t column) - { - return At(row, column); - } + float& operator[](size_t row, size_t column); [[nodiscard]] size_t ColumnsCount() const noexcept; diff --git a/source/Matrix.cpp b/source/Matrix.cpp index b07dde4..f976f41 100644 --- a/source/Matrix.cpp +++ b/source/Matrix.cpp @@ -74,6 +74,11 @@ namespace omath { return m_rows; } + + float& Matrix::operator[](const size_t row, const size_t column) + { + return At(row, column); + } Matrix::Matrix(Matrix&& other) noexcept {