| Thread Closed |
Finding coordinates of a point in a circle with angle |
Share Thread | Thread Tools |
| Aug2-08, 11:36 PM | #1 |
|
|
Finding coordinates of a point in a circle with angle
I have a point (x,y), a distance (d) and an angle (a). I need a method to find a point using x,y,d and a. For example:
![]() I will apply this on a 3D environment, but I am not going to use the 3rd dimension so it's safe. This is also about programming, but I am capable of applying methods in the programming language so I asked it here. |
| Aug3-08, 12:10 AM | #2 |
|
|
[tex]
(x_?,y_?) = (x+d\cos\alpha,y+d\sin\alpha) [/tex] |
| Aug3-08, 02:09 AM | #3 |
|
|
Thanks for the answer, but I have a problem. I wrote some code to put this in action. The code starts from "0" and adds "20" to the angle until the vaule is greater than to "360". I don't know why but the code produced this:
![]() As you can see there are some mistakes. All are getting repeated but the ones I marked. Here is the debug output I get: |
| Aug3-08, 02:56 AM | #4 |
|
|
Finding coordinates of a point in a circle with angle
The center is at (-49, -1082) and your first point, with the angle, 0 is at
(51, -1082) then radius, d, is 100. So, when the angle is 20 the point should be [tex]100(\cos(20)) + -49 \approx 45[/tex] [tex]100(\sin(20))+ -1082 \approx -1048[/tex] But you have: Drawing at (-8.204959, -991.151611) Angle is 20.000000 *Could you be in radians instead of degrees? |
| Aug3-08, 03:15 AM | #5 |
|
|
Thank you both so much! I was trying to figure this out for two days! Normally I post my questions to forums related to coding or just ask my friends, but can't get an answer :D |
| Aug3-08, 05:44 AM | #6 |
|
|
|
| Thread Closed |
| Tags |
| circle |
| Thread Tools | |
Similar Threads for: Finding coordinates of a point in a circle with angle
|
||||
| Thread | Forum | Replies | ||
| Coordinates of a random point of a circle? | General Math | 18 | ||
| finding the coordinates to a point on a normal triangle | Calculus & Beyond Homework | 1 | ||
| X,Y Coordinates Circle, Different Plane | General Math | 3 | ||
| Point outside circle, angle | General Math | 3 | ||
| finding the equation of a circle from given point on the graph | Precalculus Mathematics Homework | 4 | ||