diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-07 13:35:23 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-07 13:35:23 +0200 |
commit | 5dee2731e6fb3deb2c44e269d12c2b7db62c74cb (patch) | |
tree | 276a8356b693e8b12e9f69196c7a95cc995e13bb /src/math/func.h | |
parent | f67a62fb28c882b1650b827730bac72f404e2c47 (diff) | |
download | colobot-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.h | 11 |
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() { |