diff options
| author | Aetias <144526980+AetiasHax@users.noreply.github.com> | 2025-11-16 17:14:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-16 17:14:48 +0100 |
| commit | fc691f4c8f76d11d6b47149fefadaca4470ab2a1 (patch) | |
| tree | fe987a191d96ca71ce32776be09a57408f491050 /libs | |
| parent | 5b15874c4d2d7c185c98f2791cf8fa6a9d86a440 (diff) | |
LinkStateInteract (#135)
* Map symbol in Game
* LinkStateInteract 19%
* DebugHierarchy -> Bhio
* LinkStateInteract 89%
* LinkStateInteract 93%
* Japanese strings
* Fix build
* Fix regression
* Fix regressions
* Rename BhioBase.cpp
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/nds/include/nds/math.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/nds/include/nds/math.h b/libs/nds/include/nds/math.h index b3f0638e..c021bc0f 100644 --- a/libs/nds/include/nds/math.h +++ b/libs/nds/include/nds/math.h @@ -24,8 +24,8 @@ typedef s16 q4; #define DIV_Q20(a, b) (((a) << 12) / (b)) #define DEG_TO_ANG(n) ((n) * 0x10000 / 360) -#define SIN(n) (gSinCosTable[2 * ((n) >> 4)]) -#define COS(n) (gSinCosTable[2 * ((n) >> 4) + 1]) +#define SIN(n) (FX_SinCosTable_[2 * ((n) >> 4)]) +#define COS(n) (FX_SinCosTable_[2 * ((n) >> 4) + 1]) u32 func_01ff9f3c(s32 a, s32 b); s32 FX_Atan2Idx(s32 x, s32 y); @@ -49,7 +49,7 @@ u32 CoRemainder(u32 a, u32 b); bool Approach(unk32 *src, unk32 dest, unk32 step); bool Approach_thunk(unk32 *src, unk32 dest, unk32 step); -extern q4 gSinCosTable[]; +extern q4 FX_SinCosTable_[]; typedef struct { /* 0 */ s16 x; @@ -121,6 +121,7 @@ bool Vec3p_TryNormalize(Vec3p *vec); q20 Vec3p_DistanceSquared(Vec3p *a, Vec3p *b); void Vec3p_Scale(Vec3p *vec, q20 scale); bool Vec3p_CalculateNormal(Vec3p *vec, Vec3p *a, Vec3p *b, Vec3p *c); +void Vec3p_SetLength(Vec3p *vec, q20 len, Vec3p *out); inline void Vec3p_Rotate(Vec3p *vec, q20 sin, q20 cos, Vec3p *out) { out->x += MUL_Q20(vec->z, sin); |
