|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvolatileprototypes.fvlib.Link
public class Link
Field Summary | |
---|---|
float |
C
|
float |
L
|
Point |
p1
|
Point |
p2
|
float |
S
|
Constructor Summary | |
---|---|
Link(Point p1in,
Point p2in,
float st)
Constructor. |
Method Summary | |
---|---|
processing.core.PVector |
get()
Get a PVector of the current coordinates. |
float |
getC()
Get the rest length. |
float |
getL()
Get the current (cached) length value. |
float |
getL(boolean update)
Get the current (cached) length value. |
Point |
getP1()
Get the bias value. |
Point |
getP2()
Get the bias value. |
Link |
setC(float cin)
Set the rest length to the specified value. |
Link |
setP1(Point p1in)
Sets the 1st point. |
Link |
setP2(Point p2in)
Sets the 2nd point. |
Link |
updateL()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Point p1
public Point p2
public float L
public float C
public float S
Constructor Detail |
---|
public Link(Point p1in, Point p2in, float st)
p1in
- A Point object indicating the 1st point.p2in
- A Point object indicating the 2nd point.st
- A float value indicating stiffness.Method Detail |
---|
public final Link setC(float cin)
cin
- The new rest length value.
public final float getC()
public final float getL()
public final float getL(boolean update)
update
- Whether to update the cached length value.
@Deprecated public final Link updateL()
public final Link setP1(Point p1in)
p1in
- The 1st point.public final Link setP2(Point p2in)
p2in
- The 2nd point.public final Point getP1()
public final Point getP2()
public final processing.core.PVector get()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |