bx math API cleanup.

This commit is contained in:
Branimir Karadžić
2018-01-13 15:33:50 -08:00
parent e38c7bfaec
commit 49a75f2fb1
31 changed files with 256 additions and 242 deletions

View File

@@ -316,7 +316,7 @@ public:
// Brush attenuation
float a2 = (float)(area_x * area_x);
float b2 = (float)(area_y * area_y);
float brushAttn = m_brush.m_size - bx::fsqrt(a2 + b2);
float brushAttn = m_brush.m_size - bx::sqrt(a2 + b2);
// Raise/Lower and scale by brush power.
height += 0.0f < bx::clamp(brushAttn*m_brush.m_power, 0.0f, m_brush.m_power) && m_brush.m_raise