com.vividsolutions.jts.algorithm

Class NonRobustLineIntersector


public class NonRobustLineIntersector
extends LineIntersector

A non-robust version of .
Version:
1.7

Field Summary

Fields inherited from class com.vividsolutions.jts.algorithm.LineIntersector

COLLINEAR, DONT_INTERSECT, DO_INTERSECT, inputLines, intLineIndex, intPt, isProper, pa, pb, precisionModel, result

Constructor Summary

NonRobustLineIntersector()

Method Summary

protected int
computeIntersect(Coordinate p1, Coordinate p2, Coordinate p3, Coordinate p4)
void
computeIntersection(Coordinate p, Coordinate p1, Coordinate p2)
static boolean
isSameSignAndNonZero(double a, double b)

Methods inherited from class com.vividsolutions.jts.algorithm.LineIntersector

computeEdgeDistance, computeIntLineIndex, computeIntLineIndex, computeIntersect, computeIntersection, computeIntersection, getEdgeDistance, getIndexAlongSegment, getIntersection, getIntersectionAlongSegment, getIntersectionNum, hasIntersection, isCollinear, isEndPoint, isInteriorIntersection, isInteriorIntersection, isIntersection, isProper, nonRobustComputeEdgeDistance, setMakePrecise, setPrecisionModel, toString

Constructor Details

NonRobustLineIntersector

public NonRobustLineIntersector()

Method Details

computeIntersect

protected int computeIntersect(Coordinate p1,
                               Coordinate p2,
                               Coordinate p3,
                               Coordinate p4)
Overrides:
computeIntersect in interface LineIntersector

computeIntersection

public void computeIntersection(Coordinate p,
                                Coordinate p1,
                                Coordinate p2)
Overrides:
computeIntersection in interface LineIntersector

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.