calculateAngle now returns degrees in the form of a double