code: public static Point2D lineLineIntersect(final Line2D lineA, final Line2D lineB) {
          return lineLineIntersect(lineA.getX1(), lineA.getY1(), lineA.getX2(), lineA.getY2(), lineB.getX1(),
                  lineB.getY1(), lineB.getX2(), lineB.getY2());
  
      }
docs: Calculate the intersection of two lines.
  
  @param lineA a line
  @param lineB another line
  @return the point where the two lines intersect (or null)