|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.paulhertz.aifile.DisplayComponent
net.paulhertz.aifile.BezShape
net.paulhertz.aifile.BezLine
public class BezLine
Provides factory methods to construct and operate on a straight line.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.paulhertz.aifile.BezShape |
---|
BezShape.BezType |
Field Summary |
---|
Fields inherited from class net.paulhertz.aifile.BezShape |
---|
bezType, CURVE_SEGMENT, KAPPA, LINE_SEGMENT |
Method Summary | |
---|---|
float |
angle()
|
float |
distance()
|
float[] |
getCoords()
Returns an array of all vertex coordinates. |
static BezLine |
makeCoordinates(float x1,
float y1,
float x2,
float y2)
|
static BezLine |
makeCoordinates(PApplet parent,
float x1,
float y1,
float x2,
float y2)
|
static BezLine |
makePointAngleDistance(float x1,
float y1,
float angle,
float distance)
|
static BezLine |
makePointAngleDistance(PApplet parent,
float x1,
float y1,
float angle,
float distance)
|
Methods inherited from class net.paulhertz.aifile.DisplayComponent |
---|
hide, id, isLocked, isVisible, parentComponent, setLocked, setParentComponent, setVisible, show |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BezLine makeCoordinates(PApplet parent, float x1, float y1, float x2, float y2)
public static BezLine makeCoordinates(float x1, float y1, float x2, float y2)
public static BezLine makePointAngleDistance(PApplet parent, float x1, float y1, float angle, float distance)
public static BezLine makePointAngleDistance(float x1, float y1, float angle, float distance)
public float[] getCoords()
BezShape
LineVertex
adds two values to the array
and a BezVertex
adds six values (two control points and an anchor point). There is no
inherent way to distinguish which values represent control points and which represent anchor points.
getCoords
in class BezShape
float
generated from the vertices of this shape.BezShape.asPolygon(PApplet, int).
public float angle()
public float distance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |