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 be viewed only if
- The questioner was satisfied and accepted the answer, or
- The answer was disputed, but the judge evaluated it as 100% correct.
Shadmehr
29
The answer is accepted.
Join Matchmaticians Affiliate Marketing
Program to earn up to 50% commission on every question your affiliated users ask or answer.
- answered
- 457 views
- $10.00
Related Questions
- A trigonometry question
- Make a 2D polygon - but all the side lengths (bar one) are whole numbers, and all angles are multiples of 22.5
- Volume of a sphere.
- Deriving Ramanujan's Ellipse approximation
- Pulley System
- Find the volume of a 3D region bounded by two surfaces
- Get area of rotated polygon knowing all coordinates and angle.
- I am looking for a formula to calculate the radii of an ellipsoid from coordinates of non-coplanar locii on its surface.
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.