summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorDavid Mikos <metastability@opencompositing.org>2008-01-29 10:32:09 +1030
committerDavid Mikos <metastability@opencompositing.org>2008-01-29 10:32:09 +1030
commit128fa75781bc4d917b091be482085dd465e3eea8 (patch)
treee87f1c3c1a346a5bd0d0dbbc3d4b89c363a9fa7e /util.c
parent03c9bfdc9b7de73032420b5968eaff69976b38da (diff)
downloadsnowglobe-128fa75781bc4d917b091be482085dd465e3eea8.tar.gz
snowglobe-128fa75781bc4d917b091be482085dd465e3eea8.tar.bz2
Remove util.c as util functions -> macros.
Diffstat (limited to 'util.c')
-rw-r--r--util.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/util.c b/util.c
deleted file mode 100644
index 2a3648f..0000000
--- a/util.c
+++ /dev/null
@@ -1,24 +0,0 @@
-//a collection of utility methods
-
-#include "snowglobe-internal.h"
-#include <math.h>
-#include <float.h>
-
-
-float
-randf (float x)
-{ //return random number in range [0,x)
- return rand()/(((double)RAND_MAX + 1) / x);
-}
-
-float
-minimum (float x, float y)
-{
- return ((x) < (y) ? (x) : (y));
-}
-
-float
-maximum (float x, float y)
-{
- return ((x) > (y) ? (x) : (y));
-}