public class Segment
extends Object
Simple container for a two-points segment.
-
Constructor Summary 
Constructors
-
Method Summary 
Get the end point of the segment.
Get the line containing the segment.
Get the start point of the segment.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details 
-
Segment 
Build a segment.
- Parameters:
start
- start point of the segment
end
- end point of the segment
line
- line containing the segment
-
Method Details 
-
getStart 
Get the start point of the segment.
- Returns:
- start point of the segment
-
getEnd 
Get the end point of the segment.
- Returns:
- end point of the segment
-
getLine 
Get the line containing the segment.
- Returns:
- line containing the segment