Este site funciona melhor com JavaScript.
Página inicial
Ajuda
Acessar
lolengine
/
lol
espelhamento de
https://github.com/lolengine/lol
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
0
Wiki
Atividade
Ver código fonte
math: add distance() function for vectors.
undefined
Sam Hocevar
11 anos atrás
pai
9df9440e67
commit
7d230d7674
1 arquivos alterados
com
6 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+6
-0
src/lol/math/vector.h
+ 6
- 0
src/lol/math/vector.h
Ver arquivo
@@ -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; \
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar