in reply to Determing whether point falls inside or outside a complex polygon
Find any point that is beyond the right most point of the polygon. That's easy, just find a x that is greater than the greatest x of the polygon, with any reasonable y. Call this point ForSureOutside.
Then draw a line between the point under investigation and ForSureOutside. (Not physically draw, but find the equation of the line with those two points)
If this line intersects with any line SEGMENT that form the polygon, then the point under investigation is inside the polygon.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Determing whether point falls inside or outside a complex polygon
by bgreenlee (Friar) on Nov 08, 2004 at 17:17 UTC | |
by pg (Canon) on Nov 08, 2004 at 17:23 UTC | |
|
Re^2: Determing whether point falls inside or outside a complex polygon
by ww (Archbishop) on Nov 08, 2004 at 19:53 UTC |