neary correct casting for angle 0 to 90 :)