co.uk.sentinelweb.ps.motion
Class EpitrochoidMotion

java.lang.Object
  extended by co.uk.sentinelweb.ps.motion.Motion
      extended by co.uk.sentinelweb.ps.motion.EpitrochoidMotion

public class EpitrochoidMotion
extends Motion


Field Summary
 float d
           
 float r
           
 float R
           
 
Fields inherited from class co.uk.sentinelweb.ps.motion.Motion
timerLength, useTimer
 
Constructor Summary
EpitrochoidMotion(float r, float r2, float d, int timerLength)
           
EpitrochoidMotion(int timerLength)
           
 
Method Summary
 boolean update(ParticleSystems.ParticleSystem.Particle pt)
          The main looping function for the motion - update the particle loc,vel,acc here.
 
Methods inherited from class co.uk.sentinelweb.ps.motion.Motion
cleanup, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

R

public float R

r

public float r

d

public float d
Constructor Detail

EpitrochoidMotion

public EpitrochoidMotion(int timerLength)

EpitrochoidMotion

public EpitrochoidMotion(float r,
                         float r2,
                         float d,
                         int timerLength)
Method Detail

update

public boolean update(ParticleSystems.ParticleSystem.Particle pt)
Description copied from class: Motion
The main looping function for the motion - update the particle loc,vel,acc here.

Specified by:
update in class Motion
Parameters:
pt - particle.
Returns:
true to continue, false to stop (will go to next motion if available).