block by nitaku 477578476ee02fe20f637f3f9c7b008e

Closest point on segment

Full Screen

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.

index.js

index.html

index.coffee

index.css