Formulae

wer we use…x= r cos(angle) and y= r sin(angle) ( is this for poviding motion to object)

and why we use

angle=Math.atan(yspeed/(xspeed *-1))/math.Pi/180…

is this for cal angle …wats the meaning of arc tangent…