move sign into v3.h
This commit is contained in:
parent
5b69edf5c4
commit
c2bc3de94e
13
v3.h
13
v3.h
@ -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
|
||||
{
|
||||
|
13
wireframe.c
13
wireframe.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user