summaryrefslogtreecommitdiffstats
path: root/src/math/func.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-07 13:35:23 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-07 13:35:23 +0200
commit5dee2731e6fb3deb2c44e269d12c2b7db62c74cb (patch)
tree276a8356b693e8b12e9f69196c7a95cc995e13bb /src/math/func.h
parentf67a62fb28c882b1650b827730bac72f404e2c47 (diff)
downloadcolobot-5dee2731e6fb3deb2c44e269d12c2b7db62c74cb.tar.gz
colobot-5dee2731e6fb3deb2c44e269d12c2b7db62c74cb.tar.bz2
colobot-5dee2731e6fb3deb2c44e269d12c2b7db62c74cb.zip
Finished implementation of math functions
Diffstat (limited to 'src/math/func.h')
-rw-r--r--src/math/func.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/math/func.h b/src/math/func.h
index ef90800..79f43c1 100644
--- a/src/math/func.h
+++ b/src/math/func.h
@@ -1,4 +1,5 @@
// * This file is part of the COLOBOT source code
+// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
// * Copyright (C) 2012, Polish Portal of Colobot (PPC)
// *
// * This program is free software: you can redistribute it and/or modify
@@ -166,16 +167,6 @@ inline float Direction(float a, float g)
return g-a;
}
-//! Returns the angle between point (x,y) and (0,0)
-float RotateAngle(float x, float y)
-{
- float result = std::atan2(x, y);
- if (result < 0)
- result = PI_MUL_2 + result;
-
- return result;
-}
-
//! Returns a random value between 0 and 1.
inline float Rand()
{