Package org.meteoinfo.jts.algorithm
Class NonRobustLineIntersector
- java.lang.Object
-
- org.meteoinfo.jts.algorithm.LineIntersector
-
- org.meteoinfo.jts.algorithm.NonRobustLineIntersector
-
public class NonRobustLineIntersector extends LineIntersector
A non-robust version ofLineIntersector.
-
-
Field Summary
-
Fields inherited from class org.meteoinfo.jts.algorithm.LineIntersector
COLLINEAR, COLLINEAR_INTERSECTION, DO_INTERSECT, DONT_INTERSECT, inputLines, intLineIndex, intPt, isProper, NO_INTERSECTION, pa, pb, POINT_INTERSECTION, precisionModel, result
-
-
Constructor Summary
Constructors Constructor Description NonRobustLineIntersector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcomputeIntersect(Coordinate p1, Coordinate p2, Coordinate p3, Coordinate p4)voidcomputeIntersection(Coordinate p, Coordinate p1, Coordinate p2)Compute the intersection of a point p and the line p1-p2.static booleanisSameSignAndNonZero(double a, double b)-
Methods inherited from class org.meteoinfo.jts.algorithm.LineIntersector
computeEdgeDistance, computeIntersection, computeIntLineIndex, computeIntLineIndex, getEdgeDistance, getEndpoint, getIndexAlongSegment, getIntersection, getIntersectionAlongSegment, getIntersectionNum, hasIntersection, isCollinear, isEndPoint, isInteriorIntersection, isInteriorIntersection, isIntersection, isProper, nonRobustComputeEdgeDistance, setMakePrecise, setPrecisionModel, toString
-
-
-
-
Method Detail
-
isSameSignAndNonZero
public static boolean isSameSignAndNonZero(double a, double b)- Returns:
- true if both numbers are positive or if both numbers are negative. Returns false if both numbers are zero.
-
computeIntersection
public void computeIntersection(Coordinate p, Coordinate p1, Coordinate p2)
Description copied from class:LineIntersectorCompute the intersection of a point p and the line p1-p2. This function computes the boolean value of the hasIntersection test. The actual value of the intersection (if there is one) is equal to the value ofp.- Specified by:
computeIntersectionin classLineIntersector
-
computeIntersect
protected int computeIntersect(Coordinate p1, Coordinate p2, Coordinate p3, Coordinate p4)
- Specified by:
computeIntersectin classLineIntersector
-
-