|
||||||||
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.BehaviorCameraOverlap
public final class BehaviorCameraOverlap
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 | |
---|---|
BehaviorCameraOverlap()
Constructor, generates a new class instance. |
|
BehaviorCameraOverlap(java.util.ArrayList<? extends Point> pointsin,
processing.core.PVector camPosIn)
Constructor. |
|
BehaviorCameraOverlap(Point[] pointsin,
processing.core.PVector camPosIn)
Constructor. |
Method Summary | |
---|---|
processing.core.PVector |
getCam()
Returns the camera position as a PVector. |
float |
getMagnitude()
Returns the force magnitude value. |
float |
getRange()
Returns the range value. |
BehaviorCameraOverlap |
setCam(processing.core.PVector camPosIn)
Sets the object's Camera Vector using the supplied PVector object. |
BehaviorCameraOverlap |
setMagnitude(float magin)
Sets the magnitude of the separation force applied to each point. |
BehaviorCameraOverlap |
setRange(float nRange)
Sets the distance that points need to be separated. |
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, getNumCPUs, step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BehaviorCameraOverlap()
public BehaviorCameraOverlap(java.util.ArrayList<? extends Point> pointsin, processing.core.PVector camPosIn)
pointsin
- An ArrayList containing Point objects with which the object will be initialized.camPosIn
- A PVector object indicating the camera position.public BehaviorCameraOverlap(Point[] pointsin, processing.core.PVector camPosIn)
pointsin
- An array containing Point objects with which the object will be initialized.camPosIn
- A PVector object indicating the camera position.Method Detail |
---|
public BehaviorCameraOverlap setCam(processing.core.PVector camPosIn)
camPosIn
- The new camera position as a PVector.
public BehaviorCameraOverlap setMagnitude(float magin)
magin
- A float representing magnitude.
public BehaviorCameraOverlap setRange(float nRange)
nRange
- A float representing distance.
public float getRange()
public processing.core.PVector getCam()
public float getMagnitude()
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 |