|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvolatileprototypes.fvlib.Solver
volatileprototypes.fvlib.Behavior
volatileprototypes.fvlib.BehaviorConstantDistance
public final class BehaviorConstantDistance
Nested Class Summary |
---|
Nested classes/interfaces inherited from class volatileprototypes.fvlib.Solver |
---|
Solver.Caller |
Field Summary |
---|
Fields inherited from class volatileprototypes.fvlib.Behavior |
---|
points |
Fields inherited from class volatileprototypes.fvlib.Solver |
---|
xs |
Constructor Summary | |
---|---|
BehaviorConstantDistance()
Constructor, generates a new class instance. |
|
BehaviorConstantDistance(java.util.ArrayList<? extends Point> pointsin)
Constructor, generates a new class instance using a copy of the supplied Point ArrayList. |
|
BehaviorConstantDistance(Point[] pointsin)
Constructor, generates a new class instance using the supplied Point array. |
Method Summary | |
---|---|
float |
getC()
Returns the rest length of the virtual springs. |
protected int |
getNumCPUs()
|
float |
getRange()
Returns the range value. |
float |
getS()
Returns the stiffness of the virtual springs. |
BehaviorConstantDistance |
setC(float cin)
Sets the rest length, the length at which points exert no force between each other. |
BehaviorConstantDistance |
setFast(boolean fin)
Sets whether to use a faster solver or the normal one. |
BehaviorConstantDistance |
setRange(float rin)
Sets the maximum range below which objects will interact. |
BehaviorConstantDistance |
setS(float sin)
Sets the stiffness of the virtual spring used to keep object distance. |
protected void |
stepFunction(int step,
int offset)
|
Methods inherited from class volatileprototypes.fvlib.Behavior |
---|
getP, setP, setP |
Methods inherited from class volatileprototypes.fvlib.Solver |
---|
finalizeFunction, step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BehaviorConstantDistance()
public BehaviorConstantDistance(java.util.ArrayList<? extends Point> pointsin)
pointsin
- An ArrayList containing Point objects with which the object's list will be initialized.public BehaviorConstantDistance(Point[] pointsin)
pointsin
- An array containing Point objects with which the object's array will be initialized.Method Detail |
---|
protected int getNumCPUs()
getNumCPUs
in class Solver
public BehaviorConstantDistance setC(float cin)
cin
- A float representing the new rest distance value.
public BehaviorConstantDistance setS(float sin)
sin
- A float representing the new stiffness value.
public BehaviorConstantDistance setRange(float rin)
rin
- A float representing the new range.
public float getC()
public float getS()
public float getRange()
public final BehaviorConstantDistance setFast(boolean fin)
fin
- A boolean representing whether to use fast sqrt.
protected final void stepFunction(int step, int offset)
stepFunction
in class Solver
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |