如何编程判定 点 和 四边形 的位置关系。
Show older comments
求高手指教,如何用MATLAB编程,判断平面上的一个已知点在一个四边形的里面还是外面呢?
比如点P(x,y),四边形的控制顶点分别为:A(x1,y1) , B(x2,y2) , C(x3,y3) , D(x4,y4) 。应该怎么编写代码判断点P是否在四边形围成的区域里面呢?
Accepted Answer
More Answers (0)
Categories
Find more on 二维图和三维图 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!