computational.geometry.visibilitygraph
Class SegmentUtil

java.lang.Object
  extended by computational.geometry.visibilitygraph.SegmentUtil

public class SegmentUtil
extends java.lang.Object


Field Summary
 Point first
           
 Point second
           
 
Constructor Summary
SegmentUtil(Segment s)
           
 
Method Summary
static Point containsSameVertex(Segment s1, Segment s2)
           
static Point getIntersectionPoint(Segment s1, Segment s2)
           
static Point getMaxXPoint(Segment s)
           
static Point getMiddlePoint(Segment s)
           
static Point getMinYPoint(Segment s)
           
static Point getOtherPoint(Segment s, Point p)
           
static java.lang.String toString(Segment s1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

public Point first

second

public Point second
Constructor Detail

SegmentUtil

public SegmentUtil(Segment s)
Method Detail

containsSameVertex

public static Point containsSameVertex(Segment s1,
                                       Segment s2)

getIntersectionPoint

public static Point getIntersectionPoint(Segment s1,
                                         Segment s2)

getMaxXPoint

public static Point getMaxXPoint(Segment s)

getMiddlePoint

public static Point getMiddlePoint(Segment s)

getMinYPoint

public static Point getMinYPoint(Segment s)

getOtherPoint

public static Point getOtherPoint(Segment s,
                                  Point p)

toString

public static java.lang.String toString(Segment s1)