Match all libultra, and more closely match ultralib (#466)

* Massive libultra changes

* Fix the build!

* Remove crc comment that seemd to break the score script for some reason.

* Update README score.

* Apply some suggestions

* rename sins and coss funcs.
This commit is contained in:
Ryan Myers
2025-02-24 11:45:02 -05:00
committed by GitHub
parent fecb46f6a9
commit a005a4eb3d
438 changed files with 18425 additions and 10723 deletions
+3 -3
View File
@@ -10,8 +10,8 @@
#include "lib/src/libc/rmonPrintf.h"
#include "math_util.h"
#include "weather.h"
#include "lib/src/os/piint.h"
#include "include/viint.h"
#include "PRinternal/piint.h"
#include "PRinternal/viint.h"
/************ .rodata ************/
@@ -1058,7 +1058,7 @@ s32 render_sprite_billboard(Gfx **dlist, MatrixS **mtx, Vertex **vertexList, Obj
sp44 = (diffX * cosY) + (diffZ * sineY);
diffZ = (diffZ * cosY) - (diffX * sineY);
tanY = arctan2_f(sp44, sqrtf((diffY * diffY) + (diffZ * diffZ)));
tanX = -sins(arctan2_f(sp44, diffZ)) >> 8;
tanX = -sins_s16(arctan2_f(sp44, diffZ)) >> 8;
if (diffZ < 0.0f) {
diffZ = -diffZ;
tanX = 1 - tanX;