• 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....

1 Solution
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.
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 
Post your closing recommendations!  No comment means you don't care.

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