oops int32_t, not uint32_t >_<
This commit is contained in:
parent
1a19b5c98a
commit
9f401b35b8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue