diff options
author | Stijn Buys <ingar@osirion.org> | 2007-10-21 23:02:47 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2007-10-21 23:02:47 +0000 |
commit | a237a2d7723b94df6cd3e91401ec28388de6f1a0 (patch) | |
tree | 7da376d276d03fced7b94a807c0952fd32bcde08 /src/common/functions.h | |
parent | 084c6212afaa6f996091f36d0ff85ac845803a87 (diff) |
namespace cleanup
Diffstat (limited to 'src/common/functions.h')
-rw-r--r-- | src/common/functions.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/functions.h b/src/common/functions.h index 02f25da..62cf627 100644 --- a/src/common/functions.h +++ b/src/common/functions.h @@ -1,13 +1,18 @@ -/* functions.h - This file is part of the Osirion project +/* + common/functions.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ #ifndef __INCLUDED_FUNCTIONS_H__ #define __INCLUDED_FUNCTIONS_H__ +// C++ headers #include <cstdlib> #include <cmath> +namespace common { + /// return the smallest of two float values float min(float a, float b); @@ -38,5 +43,7 @@ float sgnf(float value); /// return an angle in the ]-180,180] range float degreesf(float angle); +} // namespace common + #endif // __INCLUDED_FUNCTIONS_H__ |