/************************/ /* math2.h */ /************************/ #ifndef _MATH2_H_ #define _MATH2_H_ #define PAI 3.1415926535897932384626433832795 #define ABS(a) ( ( (a)<0 ) ? -(a) : (a) ) /* ?¥Tü¦þÕ ? ?? ??? ??? ?*******************************************************/ void AdjustDir( float *dir ); void AdjustDir( int *dir ); /* ??????ûè??????? ***********************************************************/ float SinT( float theat ); /* ??????ûè??????? ***********************************************************/ float CosT( float theat ); /* ????????? *********************************************************************/ float Atan( float x, float y ); /* ?????§DþØ *************************************************************************/ int Rnd( int min, int max ); void initRand2( void ); int rand2( void ); /* ?¤œ???????? *******************************************************************/ float pointLen( float x1, float y1, float x2, float y2 ); float pointLen2( float x1, float y1, float x2, float y2 ); #endif