diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-01-24 14:36:08 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-01-24 14:38:58 -0900 |
commit | 2c5d063a01adbf40e124645548a79b0c2f5b4ee5 (patch) | |
tree | e76ce28d2f8b993e9781a3baf3a432caa601aba6 /inc/shared/matrix.h | |
parent | 7f362ff033196b4c60f2c4279fd0f357844227b3 (diff) |
fast inv_sqrt()
Diffstat (limited to 'inc/shared/matrix.h')
-rw-r--r-- | inc/shared/matrix.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/shared/matrix.h b/inc/shared/matrix.h index 7574edf..d762324 100644 --- a/inc/shared/matrix.h +++ b/inc/shared/matrix.h @@ -115,8 +115,10 @@ typedef struct { #define Vector4Set(v, a, b, c, d) ((v)[0]=(a),(v)[1]=(b),(v)[2]=(c),(v)[3]=(d)) void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up); -vec_t VectorNormalize(vec3_t v); // returns vector length -vec_t VectorNormalize2(vec3_t v, vec3_t out); + +void VectorNormalize(vec3_t v); +void VectorNormalize2(vec3_t v, vec3_t out); +vec_t VectorNormalizeLen(vec3_t v); // returns vector length mat4_t mul_mat4(const mat4_t *restrict a, const mat4_t *restrict b); static inline void AnglesToAxis(vec3_t angles, vec3_t axis[3]) |