unwrap: Use constants from math.h in C code.

This commit is contained in:
Jostein Bø Fløystad
2013-07-16 12:49:27 +02:00
parent f53a4e0764
commit a6e7bd4a00
2 changed files with 7 additions and 5 deletions
+4 -3
View File
@@ -17,13 +17,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define PI M_PI
#define TWOPI (2 * M_PI)
//TODO: remove global variables
//TODO: make thresholds independent
static float PI = 3.141592654f;
static float TWOPI = 6.283185307f;
#define NOMASK 0
#define MASK 1
+3 -2
View File
@@ -19,9 +19,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
static float PI = 3.141592654f;
static float TWOPI = 6.283185307f;
#define PI M_PI
#define TWOPI (2 * M_PI)
#define NOMASK 0
#define MASK 1