code: public Coordinate lineSegmentIntersection(Coordinate c1, Coordinate c2, Coordinate c3, Coordinate c4) {
  		LineSegment ls1 = new LineSegment(c1, c2);
  		LineSegment ls2 = new LineSegment(c3, c4);
  		return ls1.getIntersectionSegments(ls2);
  	}
docs: Calculates the intersection point of 2 line segments.
  
  @param c1
  Start point of the first line segment.
  @param c2
  End point of the first line segment.
  @param c3
  Start point of the second line segment.
  @param c4
  End point of the second line segment.
  @return Returns a coordinate or null if not a single intersection point.