prefuse.util.force
Class RungeKuttaIntegrator

java.lang.Object
  extended by prefuse.util.force.RungeKuttaIntegrator
All Implemented Interfaces:
Integrator

public class RungeKuttaIntegrator
extends java.lang.Object
implements Integrator

Updates velocity and position data using the 4th-Order Runge-Kutta method. It is slower but more accurate than other techniques such as Euler's Method. The technique requires re-evaluating forces 4 times for a given timestep.

Author:
jeffrey heer

Constructor Summary
RungeKuttaIntegrator()
           
 
Method Summary
 void integrate(ForceSimulator sim, long timestep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RungeKuttaIntegrator

public RungeKuttaIntegrator()
Method Detail

integrate

public void integrate(ForceSimulator sim,
                      long timestep)
Specified by:
integrate in interface Integrator
See Also:
Integrator.integrate(prefuse.util.force.ForceSimulator, long)


Copyright © 2007 Regents of the University of California