mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-19 23:23:07 -04:00
More General Cleanup (#1638)
* LINKER_FILES in makefile
* COLPOLY_GET_NORMAL
* math header
* libc
* M_PI for cosf and sinf files
* MAXFLOAT
* Revert "MAXFLOAT"
This reverts commit 96b75ffaa8.
* Remove SHT_MINV
* SHRT_MAX
* Add M_PI
* Angle macros
* f suffix
* Format
This commit is contained in:
+2
-2
@@ -71,7 +71,7 @@ f32 Math_PowF(f32 base, s32 exp) {
|
||||
* @remark original name: "sinf_table"
|
||||
*/
|
||||
f32 Math_SinF(f32 rad) {
|
||||
return sins(RAD_TO_BINANG(rad)) * SHT_MINV;
|
||||
return sins(RAD_TO_BINANG(rad)) * (1.0f / SHRT_MAX);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,7 +80,7 @@ f32 Math_SinF(f32 rad) {
|
||||
* @remark original name: "cosf_table"
|
||||
*/
|
||||
f32 Math_CosF(f32 rad) {
|
||||
return coss(RAD_TO_BINANG(rad)) * SHT_MINV;
|
||||
return coss(RAD_TO_BINANG(rad)) * (1.0f / SHRT_MAX);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user