point to line distance

버전 1.3.2 (3.52 KB) 작성자: Rik
calculate the distance between a 2D or 3D line and one or more points
다운로드 수: 2.2K
업데이트 날짜: 2020/7/5

You can input either a 2D or a 3D line and 2D or 3D points. This function is an extended version of the line below, with some input checking:
distance=norm(cross(v1-v2,pt-v2))/norm(v1-v2)

Licence: CC by-nc-sa 4.0

인용 양식

Rik (2024). point to line distance (https://github.com/thrynae/point_to_line_distance/releases/tag/1.3.2), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
R13SP1 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

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

See release notes for this release on GitHub: https://github.com/thrynae/point_to_line_distance/releases/tag/1.3.2

1.3.1

added tester and example file, and added logo

1.3.0.0

fixed issue with 2D input

1.2.0.0

added compatibility for R13 (MATLAB 6.5)

1.1.0.0

uploaded incorrect version, so now a bug in the orientation is fixed

1.0.0.0

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