diff options
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__ |