Compute the value of arcAngleDegrees correctly instead of correcting it later upon outputting it.