This commit is contained in:
2025-07-18 19:05:41 +03:00
parent e7c2826b5c
commit 464c262e08
12 changed files with 419 additions and 104 deletions

View File

@@ -349,11 +349,18 @@ public:
}
// unary '-' and '+'
template <typename SelfT>
SelfT& operator-(this SelfT& self)
SelfT operator-(this SelfT& self)
{
self._angleInRads = -self._angleInRads;
SelfT res = -self._angleInRads;
return res;
}
template <typename SelfT>
SelfT operator+(this SelfT& self)
{
return self;
}
};