computational.geometry.segmentintersection
Class SweepingLine.SegmentEndPoint
java.lang.Object
computational.geometry.Point
computational.geometry.segmentintersection.SweepingLine.SegmentEndPoint
- All Implemented Interfaces:
- Shape, java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- SweepingLine
public static class SweepingLine.SegmentEndPoint
- extends Point
SegmentEndPoint
- See Also:
- Serialized Form
Field Summary |
static int |
LEFT
|
static int |
RIGHT
|
Methods inherited from class computational.geometry.Point |
add, boundingBox, clone, contains, distance2, draw, drawLabels, drawPoints, equals, getLabel, getPoints, getX, getY, setLabel, sub, translate |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
SweepingLine.SegmentEndPoint
public SweepingLine.SegmentEndPoint(Point p,
Segment s,
int position)
getSegment
public Segment getSegment()
isLeft
public boolean isLeft()
toString
public java.lang.String toString()
- Description copied from class:
Point
- Returns a string representation of this point.
The string is composed of the point's label (if any),
and the point's (x,y) coordinates.
- Overrides:
toString
in class Point
- Returns:
- a string representation of this point.