correct rays from angle 0 to 180