mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix math functions
This commit is contained in:
parent
fccb16687b
commit
7794e56192
27 changed files with 342 additions and 102 deletions
|
@ -37,8 +37,8 @@ namespace sprout {
|
|||
atan2(FloatType y, FloatType x) {
|
||||
return sprout::math::isnan(y)
|
||||
? sprout::math::isnan(x)
|
||||
? sprout::math::signbit(y) && sprout::math::signbit(x) ? -std::numeric_limits<double>::quiet_NaN()
|
||||
: std::numeric_limits<double>::quiet_NaN()
|
||||
? sprout::math::signbit(y) && sprout::math::signbit(x) ? -std::numeric_limits<FloatType>::quiet_NaN()
|
||||
: std::numeric_limits<FloatType>::quiet_NaN()
|
||||
: y
|
||||
: sprout::math::isnan(x) ? x
|
||||
: x == -std::numeric_limits<FloatType>::infinity()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue