X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=libs%2Fmathlib.h;h=382933d7afce201d4aa125ef183b061353eb893e;hb=231225d6f97d0b926b2e896e5783cccfbc7c5619;hp=62edd115fa2d55d70ad1e367251a60bc6f9ae389;hpb=94cb905da9c38e65cff6dcd9a56874c33c367df2;p=xonotic%2Fnetradiant.git diff --git a/libs/mathlib.h b/libs/mathlib.h index 62edd115..382933d7 100644 --- a/libs/mathlib.h +++ b/libs/mathlib.h @@ -98,6 +98,9 @@ vec_t VectorLength(const vec3_t v); void VectorMA( const vec3_t va, vec_t scale, const vec3_t vb, vec3_t vc ); void _CrossProduct (vec3_t v1, vec3_t v2, vec3_t cross); +// I need this define in order to test some of the regression tests from time to time. +// This define affect the precision of VectorNormalize() function only. +#define MATHLIB_VECTOR_NORMALIZE_PRECISION_FIX 1 vec_t VectorNormalize (const vec3_t in, vec3_t out); vec_t ColorNormalize( const vec3_t in, vec3_t out ); void VectorInverse (vec3_t v);