What is the coordinate of a point on a circle from a different perspective?

AI Thread Summary
The discussion centers on determining the coordinates of a point on a circle from a different perspective. Given a circle centered at (h, k) with radius R, the coordinates of a point on the circle from the center's perspective are expressed as (R cos(theta), R sin(theta)). When converting these coordinates to the standard (x, y) system, the correct transformation is (h + R cos(theta), k + R sin(theta)). This solution successfully resolved a bug in an astrology program, prompting humorous reactions about the nature of the program.
ad_bose
Messages
5
Reaction score
0
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.
 

Attachments

Technology news on Phys.org
Well naturally it would be ( h + R cos(theta), k + R sin(theta) ).
 
Thanks Pal, that solved the Astrology program bug.
 
OMG! An Astrology program? uart, what have you done?
 
HallsofIvy said:
OMG! An Astrology program? uart, what have you done?

He looked God in the face, spit into his divine beard and then laughed.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top