Solved

Finding point coordinates after canvas rotation

Posted on 2009-05-18
1
998 Views
Last Modified: 2012-05-07
I have an image with known coordinates of multiple points within it.
I need to find a new position for each of the point after I rotate the canvas of the image a certain degree around the center.
Anyone has a way to calculate it?
I am working on a project of mapping multiple land-maps to position on Google-map but the axis is not matching.
Rotating the image itself is not good as it distorts the text.
Best way is to virtually rotate the image to match the google-mp alignment and then draw poligons on google-map after rotation.
But I need to find coordinates of each point after I rotate the original image around its center.
I know I shoudl probably treat the image as a circle and re-calculate each point after finding its center but I need a formula.
0
Comment
Question by:sstouk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 24414090
xnew=center+((xold-center)*cos(degrees*pi/180)-(yold-center)*sin(degrees*180/pi))
ynew=center+((yold-center)*cos(degrees*pi/180)+(xold-center)*sin(degrees*180/pi))
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
small programing exercises 5 102
PHP Search Algorithm 4 251
Stanford NLP enhance splitting a line to sentences 10 350
My 2003 Land Rover discovery 2 key for code for car alarm 7 144
Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
When there is a disconnect between the intentions of their creator and the recipient, when algorithms go awry, they can have disastrous consequences.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question