![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cValueLerp.h>
Public Member Functions | |
cValueLerp (TYPE nValCur=0) noexcept | |
TYPE | get_Val () const noexcept |
void | put_Val (TYPE nValCur) noexcept |
bool | TickCap (float fValPerSec, TYPE nValEnd, TIMESYS_t TimeNow=cTimeSys::k_CLEAR) |
UNITTEST_FRIEND (cValueLerp) | |
Static Public Member Functions | |
static bool | TickX (TYPE &nValCur, TYPE nValEnd, TIMESECF_t fTimePassed, float fValPerSec) |
Linear Interpolation from one value to another over time. ASSUME TYPE is float, BYTE, UINT32 or int
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Move from the old value to the new value over time.
|
inline |
Move toward nValEnd over time.
|
inlinestatic |
Lerp to a value then stop. works for fixed (integer) or floating point values.
GrayLib::cValueLerp< TYPE >::UNITTEST_FRIEND | ( | cValueLerp< TYPE > | ) |