mirror of
https://github.com/bkaradzic/bx.git
synced 2026-09-21 09:44:33 +00:00
Fixed atan2. Issue #282. Caused by 7929f098f5.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user