Any idea what the value of degrees is when this exception is thrown? Could it be one of double's edge values: Double.NaN, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY?