• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 464
  • Last Modified:

matlab / c how do i map a circle on a square and vice versa

hi guys...

how do i map a circle (r,theta) on to a square (x,y) ....  i have to map pixel by pixel such that the circle(square) gets mapped on to the square(circle).. and vice versa..

thank you for any sort of help....

0
rocky
Asked:
rocky
1 Solution
 
MrNedCommented:
I hate to be the one to tell you this, but circles and squares are different shapes :)

if i understand you correctly, imagine a ray from the centre going around like a clock hand 360degrees. Each iteration of angle, calculate the distance to the square edge and put the circle coord there. or something.
0
 
CleanupPingCommented:
rocky:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now