mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +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
|
|
@ -217,8 +217,8 @@ struct VariantUtilityFunctions {
|
|||
return Math::range_step_decimals(step);
|
||||
}
|
||||
|
||||
static inline double stepify(double value, double step) {
|
||||
return Math::stepify(value, step);
|
||||
static inline double snapped(double value, double step) {
|
||||
return Math::snapped(value, step);
|
||||
}
|
||||
|
||||
static inline double lerp(double from, double to, double weight) {
|
||||
|
|
@ -1181,7 +1181,7 @@ void Variant::_register_variant_utility_functions() {
|
|||
FUNCBINDR(ease, sarray("x", "curve"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
FUNCBINDR(step_decimals, sarray("x"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
FUNCBINDR(range_step_decimals, sarray("x"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
FUNCBINDR(stepify, sarray("x", "step"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
FUNCBINDR(snapped, sarray("x", "step"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
|
||||
FUNCBINDR(lerp, sarray("from", "to", "weight"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
FUNCBINDR(lerp_angle, sarray("from", "to", "weight"), Variant::UTILITY_FUNC_TYPE_MATH);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue