Fixed atan2. Issue #282. Caused by 7929f098f5.

This commit is contained in:
Бранимир Караџић
2022-08-21 18:39:42 -07:00
parent f39ba8010a
commit 7d784e74ff
2 changed files with 12 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ namespace bx
const float tmp5 = tmp4 * mxy;
const float tmp6 = ay > ax ? kPiHalf - tmp5 : tmp5;
const float tmp7 = _x < 0.0f ? kPi - tmp6 : tmp6;
const float result = sign(_y)*tmp7;
const float result = (_y < 0.0f ? -1.0f : 1.0f)*tmp7;
return result;
}