de.fhpotsdam.utils
Class Integrator
java.lang.Object
de.fhpotsdam.utils.Integrator
public class Integrator
- extends java.lang.Object
This class is for simple easeIn / easeOut functionality. Based on springs.
- Author:
- Ben Fry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public float value
vel
public float vel
accel
public float accel
force
public float force
mass
public float mass
damping
public float damping
attraction
public float attraction
targeting
public boolean targeting
target
public float target
prev
public float prev
epsilon
public float epsilon
Integrator
public Integrator()
Integrator
public Integrator(float value)
Integrator
public Integrator(float value,
float damping,
float attraction)
set
public void set(float v)
set
public void set(double v)
update
public boolean update()
- Update for next time step. Returns true if actually updated, false if no longer changing.
target
public void target(float t)
target
public void target(double d)
noTarget
public void noTarget()