We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7871cec + 23c9d41 commit 259c757Copy full SHA for 259c757
include/godot_cpp/variant/vector4.hpp
@@ -55,16 +55,17 @@ struct _NO_DISCARD_ Vector4 {
55
real_t z;
56
real_t w;
57
};
58
- real_t components[4] = { 0, 0, 0, 0 };
+ [[deprecated("Use coord instead")]] real_t components[4];
59
+ real_t coord[4] = { 0, 0, 0, 0 };
60
61
62
_FORCE_INLINE_ real_t &operator[](const int p_axis) {
63
DEV_ASSERT((unsigned int)p_axis < 4);
- return components[p_axis];
64
+ return coord[p_axis];
65
}
66
_FORCE_INLINE_ const real_t &operator[](const int p_axis) const {
67
68
69
70
71
Vector4::Axis min_axis_index() const;
0 commit comments