public class Triangle extends Figure
Modifier and Type | Field | Description |
---|---|---|
protected short |
_c |
Constructor | Description |
---|---|
Triangle(G3DSys g,
short c,
Point3f vertex1,
Point3f vertex2,
Point3f vertex3) |
Modifier and Type | Method | Description |
---|---|---|
void |
draw() |
All Figures know how to draw themselves via override.
|
short |
getColor() |
|
Point3f |
getVertex1() |
|
Point3f |
getVertex2() |
|
Point3f |
getVertex3() |
|
void |
setColor(short c) |
set the color of the figure
|
getID, setDrawable, setID
public void draw()
Figure
public short getColor()
public void setColor(short c)
public Point3f getVertex1()
public Point3f getVertex2()
public Point3f getVertex3()