Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Testing if a point is inside a rectangle?
Posted:
Oct 30, 2006 7:56 AM


Hi, I'm working on a computer programming assignment and I need to figure out a function for testing a point (x,y) to determine if it is on the edge of or inside a rectangle given the 4 points that make up the rectangle. I'm sure there is a direct method for testing that but I can't figure it out. Can anyone help? Thanks!
Don Zacharias BS Comp Sci Student Sacramento, CA



