...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user