Degrees are calculated in this code