All examples By author By category About

nitaku

Closest point on segment

This example shows an algorithm to find the closest point on a segment, given another point. The code is almost completely taken from the answer by Justin L. to this stackoverflow post.