How do I negate the effect that the rotation of a plane has on a rectangle?
I have a map (the plane) which can be rotated 360 degrees. When this happens, the rectangle shape that I'm drawing on the map also gets rotated along with the plane. I would like to negate this rotation and have the rectangle drawn as if the plane wasn't rotated.
So essentially, I want the rectangle to look like this image:
Check out the gif in the attachments to see a demo of the actual behavior.
Nkalpak
19
Answer
Answers can only be viewed under the following conditions:
 The questioner was satisfied with and accepted the answer, or
 The answer was evaluated as being 100% correct by the judge.
Shadmehr
29
The answer is accepted.
Join Matchmaticians Affiliate Marketing
Program to earn up to a 50% commission on every question that your affiliated users ask or answer.
 answered
 483 views
 $10.00
Related Questions
 Probability that the distance between two points on the sides of a square is larger than the length of the sides
 Land area calculation/verification
 Get area of rotated polygon knowing all coordinates and angle.
 Direction of forces acting on points A, B and C
 How can I find steering angle if the only information I have is arc length, vehicle length, and how far my vehicle is off course?

Find a general solution for the lengths of the sides of the rectangular parallelepiped with the
largest volume that can be inscribed in the following ellipsoid  Determine formula to calculate the radii of a unique ellipsoid from coordinates of noncoplanar locii on its surface, and without knowing its center or rotation angles.
 Why if $\frac{opp}{adj} =x$, then $x \times hyp =$ The length of a line perpendicular to the hypotenuse with the same height.
The question is vague. What do you mean by "I would like to negate this rotation and have the rectangle drawn as if the plane wasn't rotated"? Are you talking about doing it on google maps or something, or are you talking about a mathematical way of doing it?
I've added the gif and image as a way to visualize the problem. I'm not looking for a solution related to Google Maps, I'm looking for the mathematical way of doing it, I would then translate that to my specific implementation.