summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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));
-}