#include <RungeKutta4Op.h>
Inheritance diagram for CRungeKutta4Op:
Public Methods | |
virtual void | SetDt (float dt) |
Sets dt(=value for one timestep). | |
CRungeKutta4Op () | |
CRungeKutta4Op (CVectorField *vectorField, CInterpolator *interpolator, float dt) | |
Constructor with pointer to vectorfield, pointer to interpolator and dt as parameters. | |
virtual | ~CRungeKutta4Op () |
virtual CSamplePoint * | ComputeNext (CSamplePoint *lastPoint) |
Makes one integration-step and returns pointer to new samplepoint. |
Runge-Kutta4 is better than Euler and Runge-Kutta2, but requires much more computation because of 4 intermediate steps.