diff options
author | VolTer <mew.pur.pur@abv.bg> | 2022-09-24 14:20:06 +0200 |
---|---|---|
committer | VolTer <mew.pur.pur@abv.bg> | 2022-11-19 06:18:55 +0100 |
commit | e26f0906f229f237ad22d5b1986c1669b354b791 (patch) | |
tree | 81736e67b8393ef0f9fadce2eb29905c25125f32 /core/math/vector4i.h | |
parent | a1bc636098c91ed47a8d9a23e07a4c85b64c1884 (diff) |
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
Diffstat (limited to 'core/math/vector4i.h')
-rw-r--r-- | core/math/vector4i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/vector4i.h b/core/math/vector4i.h index a32414bb18..cb5a48daf9 100644 --- a/core/math/vector4i.h +++ b/core/math/vector4i.h @@ -79,6 +79,7 @@ struct _NO_DISCARD_ Vector4i { _FORCE_INLINE_ Vector4i abs() const; _FORCE_INLINE_ Vector4i sign() const; Vector4i clamp(const Vector4i &p_min, const Vector4i &p_max) const; + Vector4i snapped(const Vector4i &p_step) const; /* Operators */ |