|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ignotus.aifile.DisplayComponent
com.ignotus.aifile.BezShape
com.ignotus.aifile.BezTriangle
public class BezTriangle
Provides factory methods to create and operate on a triangular shape.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ignotus.aifile.BezShape |
|---|
BezShape.BezType |
| Field Summary |
|---|
| Fields inherited from class com.ignotus.aifile.BezShape |
|---|
bezType, CURVE_SEGMENT, KAPPA, LINE_SEGMENT |
| Method Summary | |
|---|---|
static BezTriangle |
makeCenterRadius(PApplet parent,
float xctr,
float yctr,
float radius)
Returns an equilateral triangle with center xctr, yctr and distance
from center to each vertex equal to radius. |
static BezTriangle |
makeThreePoints(PApplet parent,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Returns a triangle constructed from three points. |
| Methods inherited from class com.ignotus.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 BezTriangle makeCenterRadius(PApplet parent,
float xctr,
float yctr,
float radius)
xctr, yctr and distance
from center to each vertex equal to radius.
The base is aligned with the x-axis, apex points down.
xctr - x-coordinate of center of triangleyctr - y-coordinate of center of triangleradius - radius of the triangle
public static BezTriangle makeThreePoints(PApplet parent,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
x1 - x-coordinate of first pointy1 - y-coordinate of first pointx2 - x-coordinate of second pointy2 - y-coordinate of second pointx3 - x-coordinate of third pointy3 - y-coordinate of third point
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||