Skip to content

Commit

Permalink
Rename Vector4.components -> coord
Browse files Browse the repository at this point in the history
To bring it in-line with all the other vectors.
  • Loading branch information
Ivorforce authored Sep 25, 2024
1 parent 78f5d99 commit 5d31cf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/godot_cpp/variant/vector4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ struct _NO_DISCARD_ 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[](const int p_axis) {
DEV_ASSERT((unsigned int)p_axis < 4);
return components[p_axis];
return coord[p_axis];
}
_FORCE_INLINE_ const real_t &operator[](const 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;
Expand Down

0 comments on commit 5d31cf8

Please sign in to comment.