Browse Source

math: add unary + operator for vectors.

undefined
Sam Hocevar 10 years ago
parent
commit
198b8c7abf
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/lol/math/vector.h

+ 6
- 0
src/lol/math/vector.h View File

@@ -1300,6 +1300,12 @@ extern Quat<T> slerp(Quat<T> const &qa, Quat<T> const &qb, T f);
for (size_t n = 0; n < sizeof(a) / sizeof(type); n++) \
ret[n] = -a[n]; \
return ret; \
} \
\
tprefix \
inline tname<type> operator +(tname<type> const &a) \
{ \
return a; \
}

#define LOL_UNARY_FUNS(tname, tprefix, type) \


Loading…
Cancel
Save