필터 지우기
필터 지우기

Point contained in the convex hull of a quadrilateral?

조회 수: 1 (최근 30일)
John
John 2013년 5월 17일
Hellooo,
how can i examine if a point in the 2D-Plane is in the convex hull of a quadriliteral, given from 4 points??
I know there is the function "convhull" but this only creates my konvex hull.
Greetz, John

채택된 답변

Image Analyst
Image Analyst 2013년 5월 17일
You can use the inpolygon() function.
  댓글 수: 1
John
John 2013년 5월 17일
thanks for your hint!!
to be honest, i just don´t get it working^^
would you be so kind as to give me an example for the quadrilateral given by the 4 points
X1=[0,0], X2=[2,0], X3=[2,2] and X4=[0,2]
and one point beeing tested, lets say P=[1,1] ?
Greetz, John

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

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 5월 17일

카테고리

Help CenterFile Exchange에서 Bounding Regions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by