block by nitaku fdbb70c3baa36e8feb4e

Intersection of two line segments

Full Screen

This example shows how to compute the intersection point between two line segments, using an algorithm derived from this in-depth StackOverflow discussion. Drag the gray nodes to see the algorithm at work.

index.js

index.html

index.coffee

index.css