Intersection of Two Lines (line_intersection)

버전 6.0.1.0 (222 KB) 작성자: Tamas Kis
Finds the intersection of two lines.
다운로드 수: 895
업데이트 날짜: 2023/9/19

line_intersection View Intersection of Two Lines (line_intersection) on File Exchange Open in MATLAB Online

Finds the intersection of two lines.

Syntax

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

Inputs

  • l1 (1×1, 1×2, 1×3, or 1×4 double) vector defining line 1:
    • [x1]: vertical line form,
    • [m1,b1]: slope-intercept form,
    • [x1,y1,m1]: point-slope form,
    • [x1,y1,x2,y2]: two point form,
  • l2 (1×1, 1×2, 1×3, or 1×4 double) vector defining line 2:
    • [x2]: vertical line form,
    • [m2,b2]: slope-intercept form,
    • [x2,y2,m2]: point-slope form,
    • [x3,y3,x4,y4]: two point form,

Outputs

  • x_int (1×1 double): -coordinate of line intersection,
  • y_int (1×1 double): -coordinate of line intersection,

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.

인용 양식

Tamas Kis (2024). Intersection of Two Lines (line_intersection) (https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v6.0.1), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2023a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
6.0.1.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v6.0.1

6.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v6.0.0

5.0.4

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v5.0.4

5.0.3

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v5.0.3

5.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v5.0.2

5.0.1.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v5.0.1

5.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v5.0.0

4.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v4.0.0

3.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v3.0.1

3.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/3.0.0

2.0.3.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v2.0.3

2.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v2.0.1

2.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v2.0.0

1.0.3

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v1.0.3

1.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v1.0.2

1.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/line_intersection-MATLAB/releases/tag/v1.0.1

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.