#ifndef __PS2MATHS_H__
#define __PS2MATHS_H__

// Morten "Sparky" Mikkelsen's fast maths routines (From a post on the forums
// at www.playstation2-linux.com)

#define TWOPI 6.283185307179586476925286766559f
#define PI 3.1415926535897932384626433832795f
#define PIHALF 1.5707963267948966192313216916398f
#define PIDIV4 0.78539816339744830961566084581988f

float Abs(const float x);
float Sqrt(const float x);
float Max(const float a, const float b);
float Min(const float a, const float b);
float Mod(const float a, const float b);
float ASin(float x);
float ACos(float x);
float Cos(float v);
float Sin(float v);
float DegToRad(float Deg);

#endif