필터 지우기
필터 지우기

How can I check a known point cooradinates (x,y) if it belongs to a to Triangle which is known vertices coordinates v1,v2,v3 ??

조회 수: 3 (최근 30일)
I have a coordinates of point x ,y and I have coordinates of vertices of each triangle v1 ,v2 ,v3 . How can I check if one of the point belongs to a triangle?

채택된 답변

Bruno Luong
Bruno Luong 2018년 11월 18일
편집: Bruno Luong 2018년 11월 18일
vx = [v1(1) v2(1) v3(1)]
vy = [v1(2) v2(2) v3(2)]
inpolygon(x,y,vx,vy)
  댓글 수: 1
MQH
MQH 2018년 11월 19일
Thanks for your help.
I have another question because. I have vertecies with xyz 'maybe z not importantand' and I have faces and I have an segmented image binary black or whit.
How can I know if the faces belongs to the segmented area(also georeferenced image) for examlpe only white one??
- Or To make it simple How I know if the faces belong to an segmented area or polygon maybe?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by