I\'d like to have a straight forward C# function to get a closest point (from a point P) to a line-segment, AB. An abstract function may look like this. I\'ve search through
In case somebody is looking for a way to do this with Java + LibGdx:
Intersector.nearestSegmentPoint