small code improvement

This commit is contained in:
2025-01-02 18:40:19 +03:00
parent dcf466316c
commit 824b301d40
3 changed files with 7 additions and 5 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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
{