Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-01-20 21:33:48 +0000
committerStijn Buys <ingar@osirion.org>2013-01-20 21:33:48 +0000
commit4feff2411d1b703a3b93d8a342112bd998b1ffed (patch)
tree6a2c42219c9cf8b0501e07cbfed625b49f400817 /src/math/functions.cc
parentff57bf67a8e6f39c422b343488c3e90318063d3f (diff)
Made the math::randomf() method inline, added a ranged variant.
Diffstat (limited to 'src/math/functions.cc')
-rw-r--r--src/math/functions.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/math/functions.cc b/src/math/functions.cc
index 7c95a79..ffbf453 100644
--- a/src/math/functions.cc
+++ b/src/math/functions.cc
@@ -5,23 +5,12 @@
*/
#include "math/functions.h"
-#include <stdlib.h>
namespace math
{
const float DELTA = 10e-10;
-float randomf(const float max)
-{
- return ((float) rand() / (float) RAND_MAX) * max;
-}
-
-unsigned randomi(const unsigned int max)
-{
- return ((unsigned int)(rand() % max));
-}
-
float degrees180f(float angle)
{
float r = angle;