Class NonRobustLineIntersector

    • 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