Angle measurement and height determination