/***************************************************************************** ** ** ** Neversoft Entertainment ** ** ** ** Copyright (C) 1999 - All Rights Reserved ** ** ** ****************************************************************************** ** ** ** Project: Core Library ** ** ** ** Module: Math (MTH) ** ** ** ** File name: core/math.h ** ** ** ** Created: 11/23/99 - mjb ** ** ** ** Description: Math Library ** ** ** *****************************************************************************/ #ifndef __CORE_MATH_H #define __CORE_MATH_H /***************************************************************************** ** Includes ** *****************************************************************************/ #include // The following overlaoded functions will make sure that if you accidently call a double version of // a trig function with a float argument, then it will simply call the float version // (double precision is very very slow on the PS2) #ifndef __PLAT_XBOX__ inline float acos( float x ) {return acosf( x );} inline float asin( float x ) {return asinf( x );} inline float atan( float x ) {return atanf( x );} inline float atan2( float x, float y){return atan2f( x , y );} inline float cos( float x ) {return cosf( x );} inline float sin( float x ) {return sinf( x );} inline float tan( float x ) {return tanf( x );} inline float fabs( float x ) {return fabsf( x );} #endif // ifndef __PLAT_XBOX__ #ifndef __CORE_DEFINES_H #include #endif #include #include #include #include #include // need quat.h before matrix, but after vector (for the GetScalar function) #include #include #include #include /******************************************************************/ /* */ /* */ /******************************************************************/ #endif // __CORE_MATH_H