Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Circle Programming problem

  1. Dec 15, 2008 #1
    I've a small Query.
    Suppose a circle is plotted with its center at distance h,k (from x=0, y=0) with radius R. If theta is an angle from h,k to any point over the circle, we know that the co-ordinate of that point, from (h,k) perspective, will be Rcos(theta),Rsin(theta). In such a case, what shall be the co-ordinate of the SAME POINT, if it is taken from x,y.
    [​IMG]
    Kindly see Attached code written in Delphi.
     

    Attached Files:

  2. jcsd
  3. Dec 15, 2008 #2

    uart

    User Avatar
    Science Advisor

    Well naturally it would be ( h + R cos(theta), k + R sin(theta) ).
     
  4. Dec 15, 2008 #3
    Thanks Pal, that solved the Astrology program bug.
     
  5. Dec 16, 2008 #4

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    OMG! An Astrology program? uart, what have you done?
     
  6. Dec 16, 2008 #5
    He looked God in the face, spit into his divine beard and then laughed.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Circle Programming problem
  1. Programming problem (Replies: 8)

Loading...