Example: LineSegments with Movable Endpoints
Let’s add interactivity to the LineSegmentCollection applet.
The user can click on the endpoint of any segment.
The user can drag the mouse and move the endpoint.
Any intersections with other line segments are updated, too.
(Note, this version leaves copies of some intersections until the other line is moved, too.)