Go to the source code of this file.
Defines | |
#define | NORMALIZED_RAND() ((float)rand() / (float)RAND_MAX) |
#define | LERP(t, X0, X1) ((X0) + ((t) * ((X1) - (X0)))) |
#define | CUBIC_T(t) ((t)*(t)*(3-(2*(t)))) |
#define | CLERP(t, X0, X1) LERP(CUBIC_T(t), (X0), (X1)) |
#define | SPREAD(magnitude) ((magnitude) - (NORMALIZED_RAND() * 2.0f * (magnitude))) |
#define | I_SPREAD(magnitude) ((magnitude) - ((int)rand() % ((2*(magnitude))+1))) |
|
Definition at line 38 of file particleCommonFuncs.h. Referenced by DiscEmitter::assign_initial_velocity(). |
|
Definition at line 33 of file particleCommonFuncs.h. Referenced by PointParticleRenderer::create_color(), and SpriteParticleRenderer::render(). |
|
Definition at line 48 of file particleCommonFuncs.h. Referenced by ParticleSystem::birth_litter(). |
|
Definition at line 28 of file particleCommonFuncs.h. Referenced by DiscEmitter::assign_initial_velocity(), and PointParticleRenderer::create_color(). |
|
|