1#include <game/mLib/m_3d.hpp>
64 float divRes =
mWeight / prevWeight;
void set(float duration)
Starts a blend with a given duration.
float mTimeStep
How much to advance mT by each iteration.
bool mIsBlending
Whether the blend is active.
void remove()
Cancels and resets the blend.
float mScaleTo
How much to multiply the new value by (between 0 and 1).
bool mIsActive
Whether the blend is paused.
float mWeight
Current weight of the blend.
void reset()
Resets the blend to its initial state.
float mT
The current time of the blend, between 0 and 1.
calcRatio_c()
Constructs a ratio calculator.
float mScaleFrom
How much to multiply the old value by (between 0 and 1).
void offUpdate()
Pauses the blend.
bool isEnd() const
Returns whether the blend is complete.
void calc()
Advances the blend by one time step.
float mInterpolateT
If using an interpolation function, use this as the t parameter.
float FInv(register float n)
Computes 1 / n efficiently with fres + 1 Newton iteration.