-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92bef06
commit 397468f
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
#include "global.h" | ||
|
||
#include "config.h" | ||
/** | ||
* @param angle binang | ||
* @return cos(angle)*0x7FFF | ||
*/ | ||
s16 coss(u16 angle) { | ||
#ifdef DISABLE_SIN_COS_LOOKUP_TABLE | ||
return Math_CosS(angle) * 0x7FFF; | ||
#else | ||
return sins(angle + 0x4000); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters