From 33b0d2da34a2e0f0045b8b5d79443f1768e5dfa0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 27 May 2023 11:53:16 +0200 Subject: [PATCH] Added set_all() to Vector3i. --- core/math/vector3i.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/math/vector3i.h b/core/math/vector3i.h index 6809e37db..d11df5760 100644 --- a/core/math/vector3i.h +++ b/core/math/vector3i.h @@ -67,6 +67,10 @@ struct _NO_DISCARD_CLASS_ Vector3i { void set_axis(const int p_axis, const int32_t p_value); int32_t get_axis(const int p_axis) const; + _FORCE_INLINE_ void set_all(int32_t p_value) { + x = y = z = p_value; + } + Vector3i::Axis min_axis() const; Vector3i::Axis max_axis() const;