com.mizar.geometry
Class IntersectionInfo

java.lang.Object
  extended by com.mizar.geometry.IntersectionInfo

public class IntersectionInfo
extends java.lang.Object


Field Summary
static double BEGIN_VERTEX
           
static double END_VERTEX
           
 
Constructor Summary
IntersectionInfo()
           
IntersectionInfo(boolean isSameSegment, boolean isParalell, boolean isColinear, Line inLine1, Line inLine2)
          Special case constructor
IntersectionInfo(Point inPt, Line inLine1, double parametric1, Line inLine2, double parametric2)
          General case constructor
 
Method Summary
 Line getFirstLine()
           
 double getFirstParametric()
           
 Point getIntersectionPoint()
           
 Line getSecondLine()
           
 double getSecondParametric()
           
 boolean isColinear()
           
 boolean isEndpointIntersection()
           
 boolean isParalell()
           
 boolean isSameSegment()
           
 boolean isSegmentCrossingSegment()
           
 boolean isSegmentIntersectingSegment()
          Tests segment intersecting segment
 void setColinear(boolean colinear)
           
 void setFirstLine(Line firstLine)
           
 void setFirstParametric(double firstParametric)
           
 void setIntersectionPoint(Point intersectionPoint)
           
 void setParalell(boolean paralell)
           
 void setSameSegment(boolean sameSegment)
           
 void setSecondLine(Line secondLine)
           
 void setSecondParametric(double secondParametric)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEGIN_VERTEX

public static double BEGIN_VERTEX

END_VERTEX

public static double END_VERTEX
Constructor Detail

IntersectionInfo

public IntersectionInfo()

IntersectionInfo

public IntersectionInfo(boolean isSameSegment,
                        boolean isParalell,
                        boolean isColinear,
                        Line inLine1,
                        Line inLine2)
Special case constructor

Parameters:
isSameSegment - if same segment
isParalell - if parallell segs
isColinear - if colinear segs
inLine1 - first segment
inLine2 - second segment

IntersectionInfo

public IntersectionInfo(Point inPt,
                        Line inLine1,
                        double parametric1,
                        Line inLine2,
                        double parametric2)
General case constructor

Parameters:
inPt - intersection point
inLine1 - first segment
parametric1 - first parametric
inLine2 - second segment
parametric2 - second parametric
Method Detail

isSegmentIntersectingSegment

public boolean isSegmentIntersectingSegment()
Tests segment intersecting segment

Returns:
true if the 2 segments intersect.

isSegmentCrossingSegment

public boolean isSegmentCrossingSegment()
Returns:
Returns true if both segments don't intersect at an endpoint.

isEndpointIntersection

public boolean isEndpointIntersection()
Returns:
true if both segments intersect at their end points

setFirstParametric

public void setFirstParametric(double firstParametric)

getFirstParametric

public double getFirstParametric()

setFirstLine

public void setFirstLine(Line firstLine)

getFirstLine

public Line getFirstLine()

setSecondParametric

public void setSecondParametric(double secondParametric)

getSecondParametric

public double getSecondParametric()

setSecondLine

public void setSecondLine(Line secondLine)

getSecondLine

public Line getSecondLine()

setIntersectionPoint

public void setIntersectionPoint(Point intersectionPoint)

getIntersectionPoint

public Point getIntersectionPoint()

setColinear

public void setColinear(boolean colinear)

isColinear

public boolean isColinear()

setParalell

public void setParalell(boolean paralell)

isParalell

public boolean isParalell()

setSameSegment

public void setSameSegment(boolean sameSegment)

isSameSegment

public boolean isSameSegment()