summaryrefslogtreecommitdiffstats
path: root/src/math/func.h
diff options
context:
space:
mode:
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()
{