volatileprototypes.fvlib
Class BehaviorConstantForce
java.lang.Object
volatileprototypes.fvlib.Solver
volatileprototypes.fvlib.Behavior
volatileprototypes.fvlib.BehaviorConstantForce
public final class BehaviorConstantForce
- extends Behavior
- Since:
- 0.4
Fields inherited from class volatileprototypes.fvlib.Solver |
xs |
Constructor Summary |
BehaviorConstantForce()
Constructor, generates a new class instance. |
BehaviorConstantForce(java.util.ArrayList<? extends Point> pointsin,
processing.core.PVector fin)
Constructor, generates a new class instance using a copy of the supplied Point ArrayList. |
BehaviorConstantForce(Point[] pointsin,
processing.core.PVector fin)
Constructor, generates a new class instance using the supplied Point array. |
Method Summary |
processing.core.PVector |
getF()
Returns the current force vector. |
BehaviorConstantForce |
setF(processing.core.PVector fin)
Sets the force vector. |
protected void |
stepFunction(int step,
int offset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BehaviorConstantForce
public BehaviorConstantForce()
- Constructor, generates a new class instance.
BehaviorConstantForce
public BehaviorConstantForce(java.util.ArrayList<? extends Point> pointsin,
processing.core.PVector fin)
- 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.fin
- A PVector object representing the force to be applied to the Point objects.
BehaviorConstantForce
public BehaviorConstantForce(Point[] pointsin,
processing.core.PVector fin)
- Constructor, generates a new class instance using the supplied Point array.
- Parameters:
pointsin
- An array containing Point objects with which the object's array will be initialized.fin
- A PVector object representing the force to be applied to the Point objects.
setF
public BehaviorConstantForce setF(processing.core.PVector fin)
- Sets the force vector.
- Parameters:
fin
- The force vector.
getF
public processing.core.PVector getF()
- Returns the current force vector.
- Returns:
- The range value.
stepFunction
protected final void stepFunction(int step,
int offset)
- Overrides:
stepFunction
in class Solver