diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 23:38:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 23:38:02 +0200 |
commit | 52d1b0be4a5c2169060963f6f4a08c15598be064 (patch) | |
tree | a22bef4f519b179693a25c8b128c317a1c46029e /core/math | |
parent | 4c0ce657d551766744bdcad4e78f4b2442ba349e (diff) | |
parent | fcc8518bce17a72041de43efdeb64c9064bd0256 (diff) | |
download | redot-engine-52d1b0be4a5c2169060963f6f4a08c15598be064.tar.gz |
Merge pull request #96328 from object71/fix-animation-snap-96159
Add `modf` function and fix animation editor snap behavior
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/math_funcs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index fd53ed28fd..1afc5f4bbb 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -105,6 +105,9 @@ public: static _ALWAYS_INLINE_ double fmod(double p_x, double p_y) { return ::fmod(p_x, p_y); } static _ALWAYS_INLINE_ float fmod(float p_x, float p_y) { return ::fmodf(p_x, p_y); } + static _ALWAYS_INLINE_ double modf(double p_x, double *r_y) { return ::modf(p_x, r_y); } + static _ALWAYS_INLINE_ float modf(float p_x, float *r_y) { return ::modff(p_x, r_y); } + static _ALWAYS_INLINE_ double floor(double p_x) { return ::floor(p_x); } static _ALWAYS_INLINE_ float floor(float p_x) { return ::floorf(p_x); } |