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