Rotate about the origin such that the rectangle is aligned along the X & Y axis, then the test becomes simple: is rect. Left Right, is rect. Bottom Top If you don't know the rectangle's rotation, you can figure it out with trigonometry.
1 Let me know if you want more help with the trig. – Matt Curtis Feb 6 at 11:05 Correct me if I'm wrong but if I rotate the rectangle in the manner you suggest I'll be checking for intersections within a new rectangle which encompasses the rotated rectangle. What I want to do is only check for intersections on the rectangle that was rotated – meds Feb 6 at 22:35 If you rotate both the rectangle and the point, the "new rectangle" is really the same rectangle, just aligned nicely so you can easily check its bounds.To see how this works, draw (on paper) a rectangle on a 45 degree angle, along with some point.
Now tilt your head 45 degrees and the rectangle will look like it's no longer rotated. – Matt Curtis Feb 6 at 23:43.
By unrotate I mean that one of the edges of the rectangle is aligned with the x-axis.
A similar question is posted here: Check if a point is in a rotated rectangle (C#) It's in windows forms, but also applies for XNA.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.