Subversion Repositories NaviCtrl

Rev

Rev 492 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
256 killagreg 1
#ifndef _MYMATH_H
2
#define _MYMATH_H
3
 
293 killagreg 4
// trigonometry resolution of angle is 1 deg
256 killagreg 5
s16 c_sin_8192(s16 angle);
6
s16 c_cos_8192(s16 angle);
7
 
293 killagreg 8
// higher resolution trigonometry with angle in deg is arg/div
9
s16 c_sin_8192_res(s16 arg, s16 div);
10
s16 c_cos_8192_res(s16 arg, s16 div);
11
 
12
// fast arctan implementation
13
s32 c_atan2_546(s32 y, s32 x);
14
 
330 holgerb 15
// fast arccos implementation
492 killagreg 16
s16 c_arccos2(s32 a, s32 b);
17
 
18
// integer based square root
19
u32 isqrt(u32 value);
330 holgerb 20
 
256 killagreg 21
#endif // _MYMATH_H