computational.geometry.segmentintersection
Class SweepingLine.SegmentEndPoint

java.lang.Object
  extended by computational.geometry.Point
      extended by 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
           
 
Constructor Summary
SweepingLine.SegmentEndPoint(Point p, Segment s, int position)
           
 
Method Summary
 Segment getSegment()
           
 boolean isLeft()
           
 java.lang.String toString()
          Returns a string representation of this point.
 
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
 

Field Detail

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values
Constructor Detail

SweepingLine.SegmentEndPoint

public SweepingLine.SegmentEndPoint(Point p,
                                    Segment s,
                                    int position)
Method Detail

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.