Subversion Repositories NaviCtrl

Rev

Rev 492 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 492 Rev 493
Line 1... Line 1...
1
#include "91x_lib.h"
1
#include "91x_lib.h"
2
#include "mymath.h"
2
#include "mymath.h"
-
 
3
#include <math.h>
Line 3... Line 4...
3
 
4
 
Line 4... Line 5...
4
// discrete mathematics
5
// discrete mathematics
5
 
6
 
Line 33... Line 34...
33
        sinus = sinlookup[angle];
34
        sinus = sinlookup[angle];
34
        // calculate sinus value
35
        // calculate sinus value
35
        return (sinus * m * n);
36
        return (sinus * m * n);
36
}
37
}
Line 37... Line 38...
37
 
38
 
38
s16 c_arccos2(s32 a,s32 b)
39
s16 c_arccos2(s32 a, s32 b)
39
{
40
{
40
        if(a>b) return(0);
41
        if(a>b) return(0);
41
        return(arccos64[64 * a / b]);
42
        return(arccos64[64 * a / b]);
Line 148... Line 149...
148
                        root--;
149
                        root--;
149
                }
150
                }
150
        }
151
        }
151
        return(root >> 1);
152
        return(root >> 1);
152
}
153
}
153
 
-