summaryrefslogtreecommitdiff
path: root/core/math/math_funcs.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2020-12-28 21:46:43 +0100
committerGitHub <noreply@github.com>2020-12-28 21:46:43 +0100
commit6cebb8c11773b203039c811c2ee50ba25c99e5e1 (patch)
treec08adb794731c9fd9bcd7ed277e85b43e8c7a2c0 /core/math/math_funcs.cpp
parent8886a6a45c0769903050605898fd07a0ac198cdb (diff)
parentb743a2ef3cc48a94d626fccb49217237b7d4497c (diff)
Merge pull request #44586 from madmiraal/rename-stepify
Rename Math::stepify to snapped
Diffstat (limited to 'core/math/math_funcs.cpp')
-rw-r--r--core/math/math_funcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math_funcs.cpp b/core/math/math_funcs.cpp
index e57257b442..f664b2f006 100644
--- a/core/math/math_funcs.cpp
+++ b/core/math/math_funcs.cpp
@@ -123,7 +123,7 @@ double Math::ease(double p_x, double p_c) {
}
}
-double Math::stepify(double p_value, double p_step) {
+double Math::snapped(double p_value, double p_step) {
if (p_step != 0) {
p_value = Math::floor(p_value / p_step + 0.5) * p_step;
}