mirror of
https://github.com/orange-cpp/omath.git
synced 2026-06-15 11:44:34 +00:00
improvement
This commit is contained in:
@@ -171,6 +171,11 @@ namespace omath
|
||||
y = y < static_cast<Type>(0) ? -y : y;
|
||||
return *this;
|
||||
}
|
||||
[[nodiscard("You must use absed vector")]]
|
||||
constexpr Vector2 abs() const noexcept
|
||||
{
|
||||
return Vector2{*this}.abs();
|
||||
}
|
||||
|
||||
[[nodiscard("You must use negated vector")]]
|
||||
constexpr Vector2 operator-() const noexcept
|
||||
|
||||
Reference in New Issue
Block a user