PDA

View Full Version : decide the x- and y-values, trigonometry


fiona
01-14-2006, 06:02 PM
Hi!
I have a circle, (drawn dynamically). I know the degrees (50°) I know the radius (100) .
Now I want to decide the x- and y-values for a textfield I shal put in my figure in the point (x,y) you see in my attached figure.
I have tried to figure it out myself with no success, and would really appreciate some help.

Xeef
01-14-2006, 06:28 PM
x=Radius*Math.sin(Degres*Math.PI/180)
y=Radius*Math.cos(Degres*Math.PI/180)


you need the degrees AND the RADIUS

fiona
01-14-2006, 08:06 PM
Thanks again Xeef, you saved my day!