diff --git a/src/lol/math/vector.h b/src/lol/math/vector.h index 7afac1c3..1261f6b2 100644 --- a/src/lol/math/vector.h +++ b/src/lol/math/vector.h @@ -1283,6 +1283,12 @@ extern Quat slerp(Quat const &qa, Quat const &qb, T f); } \ \ tprefix \ + inline type distance(tname const &a, tname const &b) \ + { \ + return length(a - b); \ + } \ + \ + tprefix \ inline tname fract(tname const &a) \ { \ tname ret; \