|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjme.math.Line
Line defines a line represented as
L(t) = origin + t * direction for any real-valued t, and
direction is not necessarily unit length. This can further be thought of as
a ray, infinite line or a line segment.
| Constructor Summary | |
Line()
Default constructor instantiates a new Line that is defined
by an origin and a direction. |
|
Line(Vector origin,
Vector direction)
Constructor instantiates a new Line that is supplied an
origin and direction. |
|
| Method Summary | |
Vector |
getDirection()
getDirection returns the direction of the line. |
Vector |
getOrigin()
getOrigin retrieves the direction of the line. |
void |
setDirection(Vector direction)
setDirection sets the direction of the line. |
void |
setOrigin(Vector origin)
setOrigin sets the new origin of the line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Line()
Line that is defined
by an origin and a direction.
public Line(Vector origin,
Vector direction)
Line that is supplied an
origin and direction.
origin - the origin of the line.direction - the direction of the line.| Method Detail |
public Vector getDirection()
getDirection returns the direction of the line.
public void setDirection(Vector direction)
setDirection sets the direction of the line.
direction - the new direction of the line.public Vector getOrigin()
getOrigin retrieves the direction of the line.
public void setOrigin(Vector origin)
setOrigin sets the new origin of the line.
origin - the new origin of the line.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||