X = X of Center - Radius *Cos(angle)
Y = Y of Center + Radius *Sin(angle)
angle should be in radians
Radius is 5
Main Topics
Browse All TopicsI'm trying to create flash application with a type of circle diagram; a half circle with three circle sectors of different angles which may vary over time.
This half circle (180 degrees) is not the problem, nor is calculating the actual angle of the sector I'm trying to draw. For example, if the diagram shows 0%-100% and the sector should represent 0%-40%, it is just to do simple math (40/100) * 180 to get the angle. However, i do need to draw the triangle that should display the sector. The radius of my circle is 5.
How do I get the X and Y position from knowing an angle of 72 (se example image).
(The arrow is not the problem.)
Thank you for any help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks! It seems almost perfect ;)
It produces close to what I want now, but there are some error in my calculation.. When I calculate the angles I get the following results as plotted out in the attached image:
angle: 0, x: 16, y: 123
angle: -45, x: 67, y: 32
angle: -90, x: 171, y: 27
angle: -135, x: 230, y: 114
angle: -180, x: 187, y: 209
For some reason, it makes the circle larger than 180 degrees. For angles 0 and 180, y value should be exactly the same?
I'm attaching my AS code.
Business Accounts
Answer for Membership
by: ozoPosted on 2009-08-05 at 01:44:42ID: 25021229
-5 * cosine 72º
5 * sine 72º