|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectza.co.luma.geom.Segment
public class Segment
This class represents a finite line segment, that is, the segment between two points.
Constructor Summary | |
---|---|
Segment(Vector2DDouble start,
Vector2DDouble end)
Construct a new segment from two given points. |
Method Summary | |
---|---|
Vector2DDouble |
getEnd()
Gets the end point of this segment. |
Vector2DDouble |
getStart()
Gets the start point of this segment. |
void |
setEnd(Vector2DDouble end)
Sets the end point of this segment. |
void |
setStart(Vector2DDouble start)
Sets the start point for this segment. |
java.lang.String |
toString()
Returns "[start, end]". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Segment(Vector2DDouble start, Vector2DDouble end)
Method Detail |
---|
public Vector2DDouble getEnd()
public void setEnd(Vector2DDouble end)
public Vector2DDouble getStart()
public void setStart(Vector2DDouble start)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |