diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-19 23:50:28 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-19 23:50:28 +0200 |
commit | 7b6bbf79c4bb73013e2fe01f84f0025e7c06c00e (patch) | |
tree | 18196404b7f9a7c000f006076030e1d568302e5d /src/math/func.h | |
parent | 7479f486b671acb2a6aea2c84a56b383aaba00ca (diff) | |
download | colobot-7b6bbf79c4bb73013e2fe01f84f0025e7c06c00e.tar.gz colobot-7b6bbf79c4bb73013e2fe01f84f0025e7c06c00e.tar.bz2 colobot-7b6bbf79c4bb73013e2fe01f84f0025e7c06c00e.zip |
Namespace and styling fix
Diffstat (limited to 'src/math/func.h')
-rw-r--r-- | src/math/func.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/math/func.h b/src/math/func.h index 541b084..413b5d9 100644 --- a/src/math/func.h +++ b/src/math/func.h @@ -22,15 +22,17 @@ #pragma once -#include "const.h" + +#include "math/const.h" + #include <cmath> #include <cstdlib> // Math module namespace -namespace Math -{ +namespace Math { + //! Compares \a a and \a b within \a tolerance inline bool IsEqual(float a, float b, float tolerance = Math::TOLERANCE) @@ -253,4 +255,5 @@ inline float Bounce(float progress, float middle = 0.3f, float bounce = 0.4f) } } -}; // namespace Math + +} // namespace Math |