Line-Line Intersection (2d)
Version 1.0.0.0 (1.35 KB) by
Sebastian W
Calculate intersection point of two 2d lines specified with 2 points each
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 .
MATLAB Release Compatibility
Created with
R2011b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on General PDEs in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
