From 69f7ffa70863bef2be4cae08c466b5d97a627277 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 30 Jan 2008 17:34:35 +0000 Subject: accomodate the new modules --- src/common/functions.h | 53 -------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/common/functions.h (limited to 'src/common/functions.h') diff --git a/src/common/functions.h b/src/common/functions.h deleted file mode 100644 index 18dfc82..0000000 --- a/src/common/functions.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - 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 -#include - -/// Support functions for the game engine -namespace common { - -/// return the smallest of two float values -float min(float a, float b); - -/// return the smallest of two integers -int min(int a, int b); - -/// return the largest of two float values -float max(float a, float b); - -/// return the largest of two integers -int max(int a, int b); - -/// returns a random float -/*! The value returned will be in the interval [0-max] - * @param max the maximum value returned -**/ -float randomf(const float max = 1); - -/// returns a random integer -/*! The value returned will be in the interval [0-(max-1)] - * @param max the maximum value returned -**/ -unsigned int randomi(const unsigned int max); - -/// return the sign of a float value -float sgnf(float value); - -/// return an angle in the ]-180,180] range -float degrees180f(float angle); - -/// return an angle in the [0,360[ range -float degrees360f(float angle); - -} // namespace common - -#endif // __INCLUDED_FUNCTIONS_H__ - -- cgit v1.2.3