de.fhpotsdam.utils
Class Integrator

java.lang.Object
  extended by 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

Field Summary
 float accel
           
 float attraction
           
 float damping
           
 float epsilon
           
 float force
           
 float mass
           
 float prev
           
 float target
           
 boolean targeting
           
 float value
           
 float vel
           
 
Constructor Summary
Integrator()
           
Integrator(float value)
           
Integrator(float value, float damping, float attraction)
           
 
Method Summary
 void noTarget()
           
 void set(double v)
           
 void set(float v)
           
 void target(double d)
           
 void target(float t)
           
 boolean update()
          Update for next time step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Integrator

public Integrator()

Integrator

public Integrator(float value)

Integrator

public Integrator(float value,
                  float damping,
                  float attraction)
Method Detail

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()