Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.rico.engine.geometry
Class Line3D

    java.lang.Object
      de.rico.engine.geometry.Line3D

    public class Line3D

extends java.lang.Object

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.

Author:
  Frank Bruns

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

### Line3D

    public Line3D(Point3D start,
                  Point3D end)

  Creates a new line from the specified starting point to the specified ending point.

  Parameters:
    `start` - starting point of the line
    `end` - ending point of the line

Method Detail

### getStartPoint

    public Point3D getStartPoint()

  Returns the starting point of the line.

  Returns:
    starting point of the line

### getEndPoint

    public Point3D getEndPoint()

  Returns the ending point of the line.

  Returns:
    ending point of the line

### draw

    public void draw(javax.media.opengl.GL gl)

  Draws the line to the screen.

  Parameters:
    `gl` -

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD