Problem 56413. how to determine is a point is inside, on or outside a polygon?
design function determines whether the point is inside a contour, outside, or lies on an edge (or coincides with a vertex). It returns positive (inside),negative (outside), or zero (on an edge) value, correspondingly. When measureDist=false , the return value is +1, -1, and 0, respectively. Otherwise, the return value is a signed distance between the point and the nearest contour edge.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
7260 Solvers
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
1740 Solvers
-
Project Euler: Problem 4, Palindromic numbers
1021 Solvers
-
271 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
575 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!