Calculation of angle measurements