## Position of a point and a straight line or segment

버전 1.0.0.0 (1.35 KB) 작성자:
It determines the relative position of a point with respect to a planar segment or st. line

다운로드 수: 625

업데이트 날짜: 2010/4/9

라이선스 보기

Position determines the relative position of a planar point C with respect to
a planar segment joining A and B. This is not intended for 3D points.
Pos=0 =>the point C is collinear with A and B
Pos=1=>the point C is above the segment
Pos=-1=>the point C is below the segment
Example
A=[0 0 0]; B=[1 1 0]; C=[1 0 0];
Pos=Position(B,A,C)

Since C is below AB then Pos=-1
Note: in case of 2D points, you still have to include the z-ordinate, i.e
if you have a point S=[1 2], add a zero to get S=[1 2 0], and use the same
procedure as the above example

### 인용 양식

Nassim Khaled (2023). Position of a point and a straight line or segment (https://www.mathworks.com/matlabcentral/fileexchange/27215-position-of-a-point-and-a-straight-line-or-segment), MATLAB Central File Exchange. 검색됨 .

개발 환경: R2009a
모든 릴리스와 호환
##### 플랫폼 호환성
Windows macOS Linux

### Community Treasure Hunt

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

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