Closest Point on a Line

For some reason I decided to port a snippet from AS3 to JS. Chose this one:

http://actionsnippet.com/?p=2969#comment-5674
…pretty much at random.

Here is the port in a pen:

This is actually a port of a port from this old thread:
http://www.gamedev.net/topic/444154-closest-point-on-a-line/

This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*