Skip to content

Commit 259c757

Browse files
authored
Merge pull request godotengine#1609 from Ivorforce/patch-3
Rename Vector4.components -> coords.
2 parents 7871cec + 23c9d41 commit 259c757

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/godot_cpp/variant/vector4.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,17 @@ struct _NO_DISCARD_ Vector4 {
5555
real_t z;
5656
real_t w;
5757
};
58-
real_t components[4] = { 0, 0, 0, 0 };
58+
[[deprecated("Use coord instead")]] real_t components[4];
59+
real_t coord[4] = { 0, 0, 0, 0 };
5960
};
6061

6162
_FORCE_INLINE_ real_t &operator[](const int p_axis) {
6263
DEV_ASSERT((unsigned int)p_axis < 4);
63-
return components[p_axis];
64+
return coord[p_axis];
6465
}
6566
_FORCE_INLINE_ const real_t &operator[](const int p_axis) const {
6667
DEV_ASSERT((unsigned int)p_axis < 4);
67-
return components[p_axis];
68+
return coord[p_axis];
6869
}
6970

7071
Vector4::Axis min_axis_index() const;

0 commit comments

Comments
 (0)