## com.vividsolutions.jts.algorithm
Class NonRobustLineIntersector

    java.lang.Object
      com.vividsolutions.jts.algorithm.LineIntersector
          com.vividsolutions.jts.algorithm.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, DO_INTERSECT, DONT_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)` Compute the intersection of a point p and the line p1-p2.
`static boolean` `isSameSignAndNonZero(double a, double b)`

Methods inherited from class com.vividsolutions.jts.algorithm.LineIntersector
`computeEdgeDistance, computeIntersection, computeIntLineIndex, computeIntLineIndex, getEdgeDistance, getIndexAlongSegment, getIntersection, getIntersectionAlongSegment, getIntersectionNum, hasIntersection, isCollinear, isEndPoint, isInteriorIntersection, isInteriorIntersection, isIntersection, isProper, nonRobustComputeEdgeDistance, setMakePrecise, setPrecisionModel, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### NonRobustLineIntersector

    public NonRobustLineIntersector()

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: `LineIntersector`
  Compute 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 of `p`.

  Specified by:
    `computeIntersection` in class `LineIntersector`

### computeIntersect

    protected int computeIntersect(Coordinate p1,
                                   Coordinate p2,
                                   Coordinate p3,
                                   Coordinate p4)

  Specified by:
    `computeIntersect` in class `LineIntersector`