public class Line extends Figure
Modifier and Type | Field | Description |
---|---|---|
protected short |
_c |
|
protected Point3i |
e |
|
protected Point3f |
end |
|
protected Point3i |
s |
|
protected Point3f |
start |
Constructor | Description |
---|---|
Line(G3DSys g,
short c,
Point3f start,
Point3f end) |
Modifier and Type | Method | Description |
---|---|---|
void |
draw() |
All Figures know how to draw themselves via override.
|
short |
getColor() |
|
float |
getD() |
|
Point3f |
getEnd() |
|
Point3f |
getStart() |
|
void |
setColor(short c) |
set the color of the figure
|
void |
setEnd(float x,
float y,
float z) |
|
void |
setEnd(Point3f p) |
|
void |
setStart(float x,
float y,
float z) |
getID, setDrawable, setID
protected Point3f start
protected Point3f end
protected Point3i s
protected Point3i e
protected short _c
public void draw()
Figure
public float getD()
public void setEnd(Point3f p)
public void setStart(float x, float y, float z)
public void setEnd(float x, float y, float z)
public Point3f getStart()
public Point3f getEnd()
public short getColor()
public void setColor(short c)