Mike Erwin bd11d917c1 fix atan2f input conditional
Suspicious conditional found by PVS-Studio T48917

Original code (from Blender’s initial open-source commit!) looks like
it’s testing inputs to atan2f, to avoid undefined function values.
Passing xn=0 does *not* always evaluate to 0 though… I’m not sure if
this is a coding error or was done for a desired visual result.

Also changed xn==0 to xn>=0 to avoid function call in more cases.

Good description and visualization of atan2f function:
http://en.cppreference.com/w/c/numeric/math/atan2
2016-07-22 21:00:12 -04:00
2016-07-22 15:51:02 +10:00
2016-07-22 21:00:12 -04:00
2013-12-24 22:57:27 +06:00
2016-07-15 01:28:00 +10:00
2010-10-13 14:44:22 +00:00
2016-07-15 01:26:26 +10:00
2016-02-10 00:26:12 +11:00
Description
No description provided
841 MiB
Languages
C++ 78%
Python 14.9%
C 2.9%
GLSL 1.9%
CMake 1.2%
Other 0.9%