Sign in to follow this  

Help me get angle

This topic is 3096 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I need help with this problem i have, cant think out any rule in this situation... Basicaly i have one point, and a circle with given radius and i need to get angle to create two rays that each touch circle in one point. I made this picture to explain more: Image Hosted by ImageShack.us

Share this post


Link to post
Share on other sites
Thanks, im stunned by this simple mathematical formula you gave, where did you get that? I want to be able to come up with something like that to, can you suggest any books or sites? ;D

Back to point - I can construct points i need by using that angle...(i could construct new line from line that goes from point to circle center and rotate it by angle, then finding whats the closest point on that new line to circle center)

But as it involves vector rotating and that means quite a bit of heavy instructions im thinking there should be an easier way to do this... So there is my question (new one, again, yeah..) - If i would create imaginary circle whose center is in middle of line CircleCenter -> Point, and radius is D/2, would that new circle intersect with old circle in points i need? In that case ill need just calculate circle-circle intersection points... I might be wrong thought.

Edit: And it seems that circle x circle approach will do for me in this case =]

[Edited by - Semei on June 19, 2009 11:28:06 PM]

Share this post


Link to post
Share on other sites
let's call your point 'O', the circle centre 'C', the circle radius 'r', and the intersection point 'A' and 'B' (the pink points on the circle).

the distance from C to A is r (A is on the circle).

the line (OA) is tangent to the circle. That means that (OA) is perpendicular to (CA) (basic circle properties).

(OAC) form a right-angled triangle, the angle at point A is 90 degrees.

From the properties of a right angle triangle,

sin (angle(AC, OC)) = |AC| / |OC|

angle(AC, OA) = arcsin(|AC| / |OC|) = arcsin(r / |OC|).

That's trigonometry 101 [smile].

It's a bit early in the morning, I don't quite get your second question ;)

Share this post


Link to post
Share on other sites

This topic is 3096 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this