Skip to content

Commit 8126d81

Browse files
committed
Merge pull request #97487 from Ivorforce/patch-2
Rename `Vector4.components` -> `coord` for consistency
2 parents 3cde5a3 + e117ed9 commit 8126d81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/math/vector4.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ struct [[nodiscard]] Vector4 {
5555
real_t z;
5656
real_t w;
5757
};
58-
real_t components[4] = { 0, 0, 0, 0 };
58+
real_t coord[4] = { 0, 0, 0, 0 };
5959
};
6060

6161
_FORCE_INLINE_ real_t &operator[](int p_axis) {
6262
DEV_ASSERT((unsigned int)p_axis < 4);
63-
return components[p_axis];
63+
return coord[p_axis];
6464
}
6565
_FORCE_INLINE_ const real_t &operator[](int p_axis) const {
6666
DEV_ASSERT((unsigned int)p_axis < 4);
67-
return components[p_axis];
67+
return coord[p_axis];
6868
}
6969

7070
Vector4::Axis min_axis_index() const;

0 commit comments

Comments
 (0)