com.mizar.geometry
Class IntersectionInfo
java.lang.Object
com.mizar.geometry.IntersectionInfo
public class IntersectionInfo
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEGIN_VERTEX
public static double BEGIN_VERTEX
END_VERTEX
public static double END_VERTEX
IntersectionInfo
public IntersectionInfo()
IntersectionInfo
public IntersectionInfo(boolean isSameSegment,
boolean isParalell,
boolean isColinear,
Line inLine1,
Line inLine2)
- Special case constructor
- Parameters:
isSameSegment
- if same segmentisParalell
- if parallell segsisColinear
- if colinear segsinLine1
- first segmentinLine2
- second segment
IntersectionInfo
public IntersectionInfo(Point inPt,
Line inLine1,
double parametric1,
Line inLine2,
double parametric2)
- General case constructor
- Parameters:
inPt
- intersection pointinLine1
- first segmentparametric1
- first parametricinLine2
- second segmentparametric2
- second parametric
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()