Intersecting Line Segments

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration determines whether or not two line segments intersect. A green dot indicates that the segments intersect and a red dot that they do not. Degeneracy (i.e., when the lines are parallel or coincident) is shown with a red dot in the middle of the screen.

Contributed by: Jon Perry (September 2009)
Open content licensed under CC BY-NC-SA



For details, see:

P. Bourke, "Intersection Point of Two Lines (2 Dimensions)." (April 1989)

Wikipedia, "Line-Line Intersection."

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.