|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fixbin.ddd.Line
This class implements a 3D Object type "Line" which consists of two points. This class can be used for wireframe models.
| Constructor Summary | |
Line(Point p1,
Point p2)
Creates a new instance of Line |
|
| Method Summary | |
long |
getDistance()
Returns the distance (not really required for wireframes) |
void |
render(Graphics g)
Renders the line |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Line(Point p1,
Point p2)
p1 - (Point) the first pointp2 - (Point) the second point| Method Detail |
public long getDistance()
getDistance in interface Object3Dpublic void render(Graphics g)
render in interface Object3Dg - (Graphics) the graphics interface to render to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||