Line Intersecting Rectangle Edges
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.
advertisement