Merge pull request #97487 from Ivorforce/patch-2
Rename `Vector4.components` -> `coord` for consistency
This commit is contained in:
commit
8126d81d0c
|
@ -55,16 +55,16 @@ struct [[nodiscard]] Vector4 {
|
||||||
real_t z;
|
real_t z;
|
||||||
real_t w;
|
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) {
|
_FORCE_INLINE_ real_t &operator[](int p_axis) {
|
||||||
DEV_ASSERT((unsigned int)p_axis < 4);
|
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 {
|
_FORCE_INLINE_ const real_t &operator[](int p_axis) const {
|
||||||
DEV_ASSERT((unsigned int)p_axis < 4);
|
DEV_ASSERT((unsigned int)p_axis < 4);
|
||||||
return components[p_axis];
|
return coord[p_axis];
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector4::Axis min_axis_index() const;
|
Vector4::Axis min_axis_index() const;
|
||||||
|
|
Loading…
Reference in New Issue