summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorDavid Mikos <metastability@opencompositing.org>2008-01-29 10:37:05 +1030
committerDavid Mikos <metastability@opencompositing.org>2008-01-29 10:37:05 +1030
commit4c9996f7c44436e77abccde5d333d425630b759a (patch)
tree9e158f830b7c1202370fec0d430d93233299c12e /util.c
parentb6f81794236e48cf3b1abff8fa93f1771f37eb6d (diff)
downloadrubik-4c9996f7c44436e77abccde5d333d425630b759a.tar.gz
rubik-4c9996f7c44436e77abccde5d333d425630b759a.tar.bz2
Replace some utility functions with macros.
Diffstat (limited to 'util.c')
-rw-r--r--util.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/util.c b/util.c
index 278e192..7ebc983 100644
--- a/util.c
+++ b/util.c
@@ -4,24 +4,6 @@
#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));
-}
-
void
setColor(float* color, float r, float g, float b, float a,
float randomOffset, float randomness)