Skip to content

lostflame/line_intersection-MATLAB

 
 

Repository files navigation

line_intersection View Intersection of Two Lines (line_intersection) on File Exchange

Finds the intersection of two lines.

Syntax

[x_int,y_int] = line_intersection(l1,l2)

Description

[x_int,y_int] = line_intersection(l1,l2) returns the intersection [x_int,y_int] of two lines.

  • Line 1 can be defined in four different ways:

    1. l1 = x1: vertical line form (vertical line defined as )
    2. l1 = [m1,b1]: slope-intercept form ()
    3. l1 = [x1,y1,m1]: point-slope form ()
    4. l1 = [x1,y1,x2,y2]: two point form (line that contains the points and )
  • Line 2 can be defined in four different ways:

    1. l2 = x2: vertical line form (vertical line defined as )
    2. l2 = [m2,b2]: slope-intercept form ()
    3. l2 = [x2,y2,m2]: point-slope form ()
    4. l2 = [x3,y3,x4,y4]: two point form (line that contains the points and )

Examples and Additional Documentation

  • See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
  • See "Intersection_of_Two_Lines.pdf" (also included with download) for the technical documentation.

About

Finds the intersection of two lines.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%