Re: finding if point is inside irregular rectangle
- Posted by David Cuny <dcuny at LANSET.COM> Feb 26, 2002
- 429 views
I should have noted an important caveat: I'm assuming that both the point and the polygon have been converted to screen space (typically translated in the z direction and then divided by z). Also, make sure you're not assuming that in a line {{x1,y1},{x2,y2}} that x1 < x2 - you have to test it! -- David Cuny