File Exchange

image thumbnail

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

5 Downloads

Updated 13 Mar 2012

View License

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 (2021). Line-Line Intersection (2d) (https://www.mathworks.com/matlabcentral/fileexchange/35606-line-line-intersection-2d), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Hannah

Archie Hewitt

haha

thanks very much

Tim Kunz

Great!!

Mehdi Davoudi

Very useful.
tnx

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!