ps2maths.h

00001 #ifndef __PS2MATHS_H__
00002 #define __PS2MATHS_H__
00003 
00004 // Morten "Sparky" Mikkelsen's fast maths routines (From a post on the forums
00005 // at www.playstation2-linux.com)
00006 
00007 #define TWOPI 6.283185307179586476925286766559f
00008 #define PI 3.1415926535897932384626433832795f
00009 #define PIHALF 1.5707963267948966192313216916398f
00010 #define PIDIV4 0.78539816339744830961566084581988f
00011 
00012 float Abs(const float x);
00013 float Sqrt(const float x);
00014 float Max(const float a, const float b);
00015 float Min(const float a, const float b);
00016 float Mod(const float a, const float b);
00017 float ASin(float x);
00018 float ACos(float x);
00019 float Cos(float v);
00020 float Sin(float v);
00021 float DegToRad(float Deg);
00022 float RadToDeg(float Rad);
00023 
00024 #endif

Generated on Sun May 18 21:45:08 2008 for PS2X by  doxygen 1.5.4