Added cast to float in getAngleAroundRad calculation, because before it could happen that the function return NaN. #2351