From c2bc3de94ebaec37cdafcb3d5bc2dd6dc14e1048 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Sun, 15 Feb 2015 14:59:45 -0500 Subject: [PATCH] move sign into v3.h --- v3.h | 13 +++++++++++++ wireframe.c | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/v3.h b/v3.h index 94ab428..8e5b485 100644 --- a/v3.h +++ b/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 { diff --git a/wireframe.c b/wireframe.c index 8ac648f..13559ea 100644 --- a/wireframe.c +++ b/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