소스 검색

math: add distance() function for vectors.

undefined
Sam Hocevar 11 년 전
부모
커밋
7d230d7674
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      src/lol/math/vector.h

+ 6
- 0
src/lol/math/vector.h 파일 보기

@@ -1283,6 +1283,12 @@ extern Quat<T> slerp(Quat<T> const &qa, Quat<T> const &qb, T f);
} \
\
tprefix \
inline type distance(tname<type> const &a, tname<type> const &b) \
{ \
return length(a - b); \
} \
\
tprefix \
inline tname<type> fract(tname<type> const &a) \
{ \
tname<type> ret; \


||||||
x
 
000:0
불러오는 중...
취소
저장