17 diff.vx = to->vx - from->vx;
18 diff.vy = to->vy - from->vy;
19 diff.vz = to->vz - from->vz;
35 return rsin(t >> 2) * value / 4096;
37 return rsin((t >> 2) + 0x400) * value / 4096;
39 return rsin(t >> 1) * value / 4096;
FIGHTSTG.PRO: the battle.
The GTE instructions that C can't say, as the SDK's inline_c.h has them but with the real encodings i...
#define gte_lddp(r0)
the interpolation factor (IR0)
#define gte_ldsv(r0)
an SVECTOR into IR1-IR3
#define gte_stsv(r0)
IR1-IR3 into an SVECTOR.
#define gte_gpf12()
IR1-IR3 = IR0 * IR1-IR3 >> 12.
void FIGHTSTG_interpNop(void)
FIGHTSTG_interp.nop: empty, and nothing calls it.
s32 FIGHTSTG_ease(s32 curve, s32 t, s32 value)
Returns value scaled by the sine of t (4096 is 1.0) on the given curve: 0 a quarter of t,...
void FIGHTSTG_lerpVector(SVECTOR *from, SVECTOR *to, s32 t, SVECTOR *out)
FIGHTSTG_interp.lerp: out is from moved t (0-0x1000) of the way to to, on the GTE.
InterpFuncs FIGHTSTG_interp
the functions that go between values
FIGHTSTG_interp: the functions that go between values.