Added cast to float in getAngleAroundRad calculation, because before it ...

...could happen that the function return NaN. See also #2351