|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.Line3D
public class Line3D
This class represents a line in 3d space. A line does have a starting point and an ending point. To be able to visualize the line I provided a draw() method.
Constructor Summary | |
---|---|
Line3D(Point3D start,
Point3D end)
Creates a new line from the specified starting point to the specified ending point. |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl)
Draws the line to the screen. |
Point3D |
getEndPoint()
Returns the ending point of the line. |
Point3D |
getStartPoint()
Returns the starting point of the line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line3D(Point3D start, Point3D end)
start
- starting point of the lineend
- ending point of the lineMethod Detail |
---|
public Point3D getStartPoint()
public Point3D getEndPoint()
public void draw(javax.media.opengl.GL gl)
gl
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |