protected float[] derivatives; // space to store derivatives public ODE_Euler(int dim, DeriveFunction dr, object ud) { dimension = dim; derivatives = new float[dim]; derive = dr; userData = ud; }
protected float[] derivatives; // space to store derivatives public ODE_Midpoint(int dim, DeriveFunction dr, object ud) { dimension = dim; tmpState = new float[dim]; derivatives = new float[dim]; derive = dr; userData = ud; }
public ODE_RK4(int dim, DeriveFunction dr, object ud) { dimension = dim; derive = dr; userData = ud; tmpState = new float[dim]; d1 = new float[dim]; d2 = new float[dim]; d3 = new float[dim]; d4 = new float[dim]; }
public ODE_RK4Adaptive(int dim, DeriveFunction dr, object ud) { dimension = dim; derive = dr; userData = ud; maxError = 0.01f; tmpState = new float[dim]; d1 = new float[dim]; d1half = new float[dim]; d2 = new float[dim]; d3 = new float[dim]; d4 = new float[dim]; }