|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocessing.core.PVector
volatileprototypes.fvlib.Point
public class Point
Field Summary | |
---|---|
protected float |
c
|
protected processing.core.PVector |
old
|
protected float |
r
|
protected float |
r2
|
processing.core.PVector |
sforce
|
protected boolean |
U
|
protected processing.core.PVector |
uMult
|
protected float |
w
|
protected float |
w1
|
Fields inherited from class processing.core.PVector |
---|
array, x, y, z |
Constructor Summary | |
---|---|
Point(float xin,
float yin,
float zin)
Constructor. |
|
Point(float xin,
float yin,
float zin,
float win)
Constructor. |
|
Point(float xin,
float yin,
float zin,
float win,
float cin,
float rin)
Constructor. |
|
Point(processing.core.PVector v)
Constructor. |
|
Point(processing.core.PVector v,
float win)
Constructor. |
|
Point(processing.core.PVector v,
float win,
float cin,
float rin)
Constructor. |
Method Summary | |
---|---|
Point |
copy()
Get a copy of this Point. |
Point |
copy(boolean copyVelocityAndForce)
Get a copy of this Point. |
float |
distance2To(Point p)
Get the squared distance to another Point (fast). |
double |
distanceTo(Point p)
Get the distance to another Point. |
float |
getC()
|
float |
getR()
|
boolean |
getU()
|
processing.core.PVector |
getUMult()
|
processing.core.PVector |
getV()
Get the current velocity vector as a PVector. |
float |
getW()
|
Point |
setC(float cin)
Set the charge. |
Point |
setPos(processing.core.PVector pos)
|
Point |
setR(float rin)
Set the range. |
void |
setU(boolean uin)
Set whether the object is unyielding. |
Point |
setUMult(processing.core.PVector umin)
Set the unyielding multiplier. |
Point |
setW(float win)
Set the weight. |
Methods inherited from class processing.core.PVector |
---|
add, add, add, add, angleBetween, array, cross, cross, cross, dist, dist, div, div, div, div, div, div, dot, dot, dot, equals, get, get, hashCode, heading2D, limit, mag, mult, mult, mult, mult, mult, mult, normalize, normalize, rotate, scaleTo, scaleTo, set, set, set, sub, sub, sub, sub, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected float w
protected float w1
protected float c
protected float r
protected float r2
public processing.core.PVector sforce
protected processing.core.PVector old
protected processing.core.PVector uMult
protected boolean U
Constructor Detail |
---|
public Point(float xin, float yin, float zin)
xin
- X-Position of the Point.yin
- Y-Position of the Point.zin
- Z-Position of the Point.public Point(float xin, float yin, float zin, float win)
xin
- X-Position of the Point.yin
- Y-Position of the Point.zin
- Z-Position of the Point.win
- Weight of the Point.public Point(float xin, float yin, float zin, float win, float cin, float rin)
xin
- X-Position of the Point.yin
- Y-Position of the Point.zin
- Z-Position of the Point.win
- Weight of the Point.cin
- Charge of the Point.rin
- Range of the Point.public Point(processing.core.PVector v)
v
- The PVector with the coordinates of the Point.public Point(processing.core.PVector v, float win)
v
- The PVector with the coordinates of the Point.win
- Weight of the Point.public Point(processing.core.PVector v, float win, float cin, float rin)
v
- The PVector with the coordinates of the Point.win
- Weight of the Point.cin
- Charge of the Point.rin
- Range of the Point.Method Detail |
---|
public Point copy()
public Point copy(boolean copyVelocityAndForce)
copyVelocityAndForce
- Whether to copy velocity, charge and force also.
public Point setW(float win)
win
- The weight value.public float getW()
public Point setC(float cin)
cin
- The charge value.public float getC()
public Point setR(float rin)
rin
- The range value.public float getR()
public void setU(boolean uin)
uin
- The unyielding flag.public boolean getU()
public Point setUMult(processing.core.PVector umin)
umin
- The weight value.public processing.core.PVector getUMult()
public processing.core.PVector getV()
public Point setPos(processing.core.PVector pos)
public float distance2To(Point p)
public double distanceTo(Point p)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |