Merge pull request #104386 from Repiteo/core/cpp-math

Core: Replace C math headers with C++ equivalents
This commit is contained in:
Thaddeus Crews 2025-04-27 19:21:22 -05:00
commit 3947cbe3b2
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
101 changed files with 414 additions and 498 deletions

View file

@ -334,7 +334,7 @@ void ScrollBar::_notification(int p_what) {
if (scrolling) {
if (get_value() != target_scroll) {
double target = target_scroll - get_value();
double dist = abs(target);
double dist = std::abs(target);
double vel = ((target / dist) * 500) * get_process_delta_time();
if (Math::abs(vel) >= dist) {