locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.99k stars 443 forks source link

Add PointLocation.isOnSegment function #1048

Closed dr-jts closed 7 months ago

dr-jts commented 7 months ago

Adds the function PointLocation.isOnSegment to improve modularization and usability of the functionality for testing whether a point lies on a line segment.

Updates the code base to use this function. This replaces the RobustLineIntersector.computeIntersection approach.