angle of movement calculation