page2
particle_system *initParticleSystem(int emitter_amount)
{
particle_system *ps = malloc(sizeof(particle_system));
ps->emitters = malloc(sizeof(emitter *) * emitter_amount);
ps->eamount = emitter_amount;
return ps;
}
typedef void (* CalculatePositionFunction)(particle *particle, float dt);
int main()
{
vector3f *epos1 = initVector3f(0, 0, 0);
emitter *e1 = initEmitter(epos1, PARTICLE_AMOUNT);
particle_system *ps = initParticleSystem(1);
(ps->emitters)[0] = e1;
initRandomParticles(e1);
}
OFFLINE
TexMaths
24§display§\int_X \chi_A \mathbf{d}\mu = \mu(A)§svg§600§TRUE§
TexMaths
22§display§\sum\limits^\infty_{n=1} \frac{1}{n^2} = \frac{\pi^2}{6}§svg§600§TRUE§
TexMaths
18§display§\nabla f = \begin{pmatrix}\frac{\partial f}{\partial x_1}\\\vdots\\\frac{\partial f}{\partial x_n}{\end{pmatrix}§svg§600§TRUE§
TexMaths
20§display§e^{i\pi} + 1 = 0§svg§600§TRUE§
TexMaths
24§display§\|\mathfrak{x}\| = \sqrt{\langle \mathfrak{x}, \mathfrak{x} \rangle}§svg§600§TRUE§