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 ) ; }
Calculates the intersection point of 2 line segments .