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.
    circle.bmp.gif
    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
    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




Loading...
Similar Threads for Circle Programming problem Date
Java Draw circles at end Point of Line with End Points as Centre Apr 12, 2017
JApplet: Random Circles Feb 17, 2017
Circles in visual basic Sep 20, 2012
Code for great circle? Dec 23, 2007
Draw mohr circle using C programming Sep 25, 2006