Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nearest-point-on-segment function
Splits out a generalized point-on/in segment function, calling it from the old and new versions. The new function will return the coordinate on the segment closest to the given point, regardless of whether the point is perpendicular to the segment.
- Loading branch information
Showing
1 changed file
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters