Added set_all() to Vector3i.

This commit is contained in:
Relintai 2023-05-27 11:53:16 +02:00
parent 2b24871814
commit 33b0d2da34

View File

@ -67,6 +67,10 @@ struct _NO_DISCARD_CLASS_ Vector3i {
void set_axis(const int p_axis, const int32_t p_value);
int32_t get_axis(const int p_axis) const;
_FORCE_INLINE_ void set_all(int32_t p_value) {
x = y = z = p_value;
}
Vector3i::Axis min_axis() const;
Vector3i::Axis max_axis() const;