フィルターのクリア

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 Center および File ExchangeBounding Regions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by