Move definition of PI into puzzles.h. If nothing else, the definition in cube.c

had a typo :)

[originally from svn r5878]
This commit is contained in:
Jacob Nevins
2005-05-31 12:03:25 +00:00
parent caee305b47
commit a029c2095d
5 changed files with 2 additions and 8 deletions

2
cube.c
View File

@ -11,8 +11,6 @@
#include "puzzles.h" #include "puzzles.h"
#define PI 3.14159265358979323846264338327950884197169399
#define MAXVERTICES 20 #define MAXVERTICES 20
#define MAXFACES 20 #define MAXFACES 20
#define MAXORDER 4 #define MAXORDER 4

2
net.c
View File

@ -12,8 +12,6 @@
#include "puzzles.h" #include "puzzles.h"
#include "tree234.h" #include "tree234.h"
#define PI 3.141592653589793238462643383279502884197169399
#define MATMUL(xr,yr,m,x,y) do { \ #define MATMUL(xr,yr,m,x,y) do { \
float rx, ry, xx = (x), yy = (y), *mat = (m); \ float rx, ry, xx = (x), yy = (y), *mat = (m); \
rx = mat[0] * xx + mat[2] * yy; \ rx = mat[0] * xx + mat[2] * yy; \

View File

@ -13,8 +13,6 @@
#include "puzzles.h" #include "puzzles.h"
#include "tree234.h" #include "tree234.h"
#define PI 3.141592653589793238462643383279502884197169399
#define MATMUL(xr,yr,m,x,y) do { \ #define MATMUL(xr,yr,m,x,y) do { \
float rx, ry, xx = (x), yy = (y), *mat = (m); \ float rx, ry, xx = (x), yy = (y), *mat = (m); \
rx = mat[0] * xx + mat[2] * yy; \ rx = mat[0] * xx + mat[2] * yy; \

View File

@ -12,6 +12,8 @@
#define FALSE 0 #define FALSE 0
#endif #endif
#define PI 3.141592653589793238462643383279502884197169399
#define lenof(array) ( sizeof(array) / sizeof(*(array)) ) #define lenof(array) ( sizeof(array) / sizeof(*(array)) )
#define STR_INT(x) #x #define STR_INT(x) #x

View File

@ -20,8 +20,6 @@
#define COORD(x) ( (x) * TILE_SIZE + BORDER ) #define COORD(x) ( (x) * TILE_SIZE + BORDER )
#define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 )
#define PI 3.141592653589793238462643383279502884197169399
#define ANIM_PER_RADIUS_UNIT 0.13F #define ANIM_PER_RADIUS_UNIT 0.13F
#define FLASH_FRAME 0.13F #define FLASH_FRAME 0.13F