Line Intersecting Rectangle Edges

game

A little bit of math can tell us intersections of one line with another. This example takes a dynamically drawn line and lets us know where it intersects with the edges of a rectangle from where it originates. An x will mark the point of intersection.

Developer: Trevor McCauley
Language: en