Did it!!

alpha =(Math.atan2(vy[color=red][b],[/b][/color]vx))*180/Math.PI;


tricky, noted the comma and it works beautifully.

i am starting to look at the optics examples

a lot of things i want to do can be found !!!

thanks