coord/ops: negation operator
This commit is contained in:
parent
869125e308
commit
3f07f6edf7
@ -148,6 +148,15 @@ namespace util {
|
|||||||
SCALAR_OP(/=)
|
SCALAR_OP(/=)
|
||||||
#undef SCALAR_OP
|
#undef SCALAR_OP
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------
|
||||||
|
// negation
|
||||||
|
template <size_t S, typename T, template<size_t,typename> class K>
|
||||||
|
K<S,T> operator- (K<S,T> k)
|
||||||
|
{
|
||||||
|
k *= -1;
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// logic operators
|
// logic operators
|
||||||
|
Loading…
Reference in New Issue
Block a user