diff --git a/src/FxEngine/coord.c b/src/FxEngine/coord.c index aaf4418..9d0e86b 100644 --- a/src/FxEngine/coord.c +++ b/src/FxEngine/coord.c @@ -5,13 +5,13 @@ const double FE_2_PI = FE_PI * 2; const double FE_PI_SUR_2 = FE_PI / 2; -static const uint32_t precision=15; // précision (nombre obligatoirement impair) choisie de façon arbitraire +static const int32_t precision=15; // précision (nombre obligatoirement impair) choisie de façon arbitraire static double reducted_cos(const double a) { double u= 1.0; const double a2 = a * a; - for(uint32_t p = precision; p>=1; p -= 2) + for(int32_t p = precision; p>=1; p -= 2) u = 1 - a2 / (p * p + p) * u; return u; } diff --git a/src/FxEngine/coord.h b/src/FxEngine/coord.h index 3bb4848..3d746c1 100644 --- a/src/FxEngine/coord.h +++ b/src/FxEngine/coord.h @@ -7,7 +7,7 @@ notion de point dans l'espace simple */ typedef struct FE_position FE_position; struct FE_position -{uint32_t x,y,z;}; +{int32_t x,y,z;}; /* FE_point: notion de point dans l'espace destiné à etre utilisé dans l'affichage