From e117ed9cd42666a98ac8253fd3d880ca97c414cf Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Thu, 26 Sep 2024 14:02:00 +0200 Subject: [PATCH] Rename Vector4.components -> coord --- core/math/vector4.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/math/vector4.h b/core/math/vector4.h index 8632f69f579..9197e3587ab 100644 --- a/core/math/vector4.h +++ b/core/math/vector4.h @@ -55,16 +55,16 @@ struct [[nodiscard]] Vector4 { real_t z; real_t w; }; - real_t components[4] = { 0, 0, 0, 0 }; + real_t coord[4] = { 0, 0, 0, 0 }; }; _FORCE_INLINE_ real_t &operator[](int p_axis) { DEV_ASSERT((unsigned int)p_axis < 4); - return components[p_axis]; + return coord[p_axis]; } _FORCE_INLINE_ const real_t &operator[](int p_axis) const { DEV_ASSERT((unsigned int)p_axis < 4); - return components[p_axis]; + return coord[p_axis]; } Vector4::Axis min_axis_index() const;