move sign into v3.h

This commit is contained in:
Trammell Hudson 2015-02-15 14:59:45 -05:00
parent 5b69edf5c4
commit c2bc3de94e
2 changed files with 13 additions and 13 deletions

13
v3.h
View File

@ -12,6 +12,19 @@
#define M_PI 3.1415926535897932384
#endif
static inline float
sign(
const float x
)
{
if (x < 0)
return -1;
if (x > 0)
return +1;
return 0;
}
typedef struct
{

View File

@ -140,19 +140,6 @@ coplanar_check(
}
static inline float
sign(
const float x
)
{
if (x < 0)
return -1;
if (x > 0)
return +1;
return 0;
}
/**
* Add a vector to the list of edges if it is not already present