Line-Line Intersection (2d)

Calculate intersection point of two 2d lines specified with 2 points each

You are now following this Submission

Calculate intersection point of two 2d lines specified with 2 points each
(X1, Y1; X2, Y2; X3, Y3; X4, Y4), while 1&2 and 3&4 specify a line.
Gives back NaN or Inf/-Inf if lines are parallel (= when denominator = 0)
see http://en.wikipedia.org/wiki/Line-line_intersection

Cite As

Sebastian W (2026). Line-Line Intersection (2d) (https://www.mathworks.com/matlabcentral/fileexchange/35606-line-line-intersection-2d), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0