Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
interp.c File Reference

FIGHTSTG's interpolation (FIGHTSTG_interp). More...

#include "battle/battle_mode.h"
#include "engine/gte.h"
Include dependency graph for interp.c:

Go to the source code of this file.

Functions

void FIGHTSTG_interpNop (void)
 FIGHTSTG_interp.nop: empty, and nothing calls it.
 
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.
 
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, 1 the same as a cosine, 2 half of t.
 

Variables

InterpFuncs FIGHTSTG_interp = { FIGHTSTG_interpNop, FIGHTSTG_lerpVector, FIGHTSTG_ease }
 the functions that go between values
 

Detailed Description

FIGHTSTG's interpolation (FIGHTSTG_interp).

Definition in file interp.c.

Function Documentation

◆ FIGHTSTG_interpNop()

void FIGHTSTG_interpNop ( void  )

FIGHTSTG_interp.nop: empty, and nothing calls it.

Definition at line 7 of file interp.c.

◆ FIGHTSTG_lerpVector()

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.

Definition at line 12 of file interp.c.

◆ FIGHTSTG_ease()

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, 1 the same as a cosine, 2 half of t.

Definition at line 31 of file interp.c.

Variable Documentation

◆ FIGHTSTG_interp

the functions that go between values

Definition at line 44 of file interp.c.

Referenced by FIGHTSTG_fadeStage(), FIGHTSTG_updateBattleCamera(), FIGHTSTG_updateJump(), FIGHTSTG_updateLights(), and FIGHTSTG_updateMove().