diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-26 18:45:50 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-26 18:45:50 +0200 |
commit | 8126d81d0c9d67eaa88e10a742f202dda6a15117 (patch) | |
tree | 7998f5b3c53d8cf653b59c2d8cc8bfc04d96d626 | |
parent | 3cde5a37f98552ef10b73091c058a5802ace08db (diff) | |
parent | e117ed9cd42666a98ac8253fd3d880ca97c414cf (diff) | |
download | redot-engine-8126d81d0c9d67eaa88e10a742f202dda6a15117.tar.gz |
Merge pull request #97487 from Ivorforce/patch-2
Rename `Vector4.components` -> `coord` for consistency
-rw-r--r-- | core/math/vector4.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/vector4.h b/core/math/vector4.h index 8632f69f57..9197e3587a 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; |