src/main/java/de/javagl/geom/Intersections.java
/**
         * Computes the intersection of the given lines segment.
         * 
         * @param line0 The first line segment
         * @param line1 The second line segment
         * @param relativeLocation Optional location that stores the 
         * relative location of the intersection point on 
         * the given line segments
         * @param absoluteLocation Optional location that stores the 
         * absolute location of the intersection point
         * @return Whether the line segments intersect. That is,
         * when they are not parallel, and the relative location 
         * is in [0,1] for both lines.
         */
Computes the intersection of the given lines segment.


Computes the intersection of the given lines segment .
public static boolean intersect( 
            Line2D line0, Line2D line1,
            Point2D relativeLocation,
            Point2D absoluteLocation)
        {
            return intersect(
                line0.getX1(), line0.getY1(), 
                line0.getX2(), line0.getY2(),
                line1.getX1(), line1.getY1(), 
                line1.getX2(), line1.getY2(),
                relativeLocation, absoluteLocation);
        }
public static boolean intersect ( Line2D line0 , Line2D line1 , Point2D relativeLocation , Point2D absoluteLocation ) { return intersect ( line0 . getX1 ( ) , line0 . getY1 ( ) , line0 . getX2 ( ) , line0 . getY2 ( ) , line1 . getX1 ( ) , line1 . getY1 ( ) , line1 . getX2 ( ) , line1 . getY2 ( ) , relativeLocation , absoluteLocation ) ; }
Computes the intersection of the given lines segment.
Computes the intersection of the given lines segment .