Calculation of angle of projection and range