volatileprototypes.fvlib
Class IntegratorVerlet
java.lang.Object
volatileprototypes.fvlib.Solver
volatileprototypes.fvlib.Behavior
volatileprototypes.fvlib.IntegratorVerlet
public final class IntegratorVerlet
- extends Behavior
- Since:
- 0.2.0
Fields inherited from class volatileprototypes.fvlib.Solver |
xs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegratorVerlet
public IntegratorVerlet()
- Constructor, generates a new class instance.
IntegratorVerlet
public IntegratorVerlet(java.util.ArrayList<? extends Point> pointsin)
- Constructor, generates a new class instance using a copy of the supplied Point ArrayList.
- Parameters:
pointsin
- An ArrayList containing Point objects with which the object's list will be initialized.
IntegratorVerlet
public IntegratorVerlet(Point[] pointsin)
- Constructor.
Constructor, generates a new class instance using the supplied array.
- Parameters:
pointsin
- An array containing Point objects with which the object's list will be initialized.
setF
public final IntegratorVerlet setF(float fin)
- Sets the friction value. 0 = max friction, 1 = no friction.
- Parameters:
fin
- The friction value.
getF
public final float getF()
- Returns the friction value. 0 = max friction, 1 = no friction.
- Returns:
- The friction value.
stepFunction
protected final void stepFunction(int step,
int offset)
- Overrides:
stepFunction
in class Solver