mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
small code improvement
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user