mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
Rename Math::stepify to snapped
This commit is contained in:
parent
be509bf5e4
commit
b743a2ef3c
28 changed files with 148 additions and 148 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue