From cad1758bb8b092b804f9cc701aeb730e570b173b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Oct 2007 09:20:12 +0000 Subject: split degreesf into degrees180f and degrees360f --- src/common/functions.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/functions.h') diff --git a/src/common/functions.h b/src/common/functions.h index d13fd17..18dfc82 100644 --- a/src/common/functions.h +++ b/src/common/functions.h @@ -42,7 +42,10 @@ unsigned int randomi(const unsigned int max); float sgnf(float value); /// return an angle in the ]-180,180] range -float degreesf(float angle); +float degrees180f(float angle); + +/// return an angle in the [0,360[ range +float degrees360f(float angle); } // namespace common -- cgit v1.2.3