From 663c7538e18aaeeb460cffd7700e8caff1420f8a Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 16 Jan 2012 01:49:19 +0100 Subject: some maths stuff --- include/game.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/game.h') diff --git a/include/game.h b/include/game.h index 0871eb1..e0c2eea 100755 --- a/include/game.h +++ b/include/game.h @@ -18,6 +18,8 @@ inline T max(T one, T two) { return (one > two) ? one : two; } template inline T clamp(T value, T one, T two) { return (value < one) ? one : ((value > two) ? two : value); } +#define M_PI 3.14159265358979323846 +#define M_PI_2 (M_PI / 2) extern "C" { int strlen(const char *str); @@ -28,6 +30,8 @@ float atan2(float y, float x); float cos(float x); float sin(float x); +float ceil(float x); +float floor(float x); } bool DVD_Start(); @@ -2457,5 +2461,8 @@ extern int currentScreenSizeID; extern float GlobalScreenWidth, GlobalScreenHeight; +extern u32 GlobalTickCount; + + #endif -- cgit v1.2.3