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.
    Kindly see Attached code written in Delphi.

    Attached Files:

  2. jcsd
  3. Dec 15, 2008 #2


    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


    User Avatar
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook