diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-02-01 00:10:52 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-06-03 12:05:20 -0400 |
commit | 2e13e3ed4a0f94e5f868cc827d1ba6ad4bed8b35 (patch) | |
tree | 8967b0fcf1f1e44732b0f5c28e09dfaa728fdabd /core/math/vector3i.h | |
parent | 94bc0bd9193d5e361bbe657d59a492467f129721 (diff) | |
download | redot-engine-2e13e3ed4a0f94e5f868cc827d1ba6ad4bed8b35.tar.gz |
Allow clamping vectors and colors
Diffstat (limited to 'core/math/vector3i.h')
-rw-r--r-- | core/math/vector3i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/vector3i.h b/core/math/vector3i.h index b0411fb62e..37c7c1c368 100644 --- a/core/math/vector3i.h +++ b/core/math/vector3i.h @@ -69,6 +69,7 @@ struct Vector3i { _FORCE_INLINE_ Vector3i abs() const; _FORCE_INLINE_ Vector3i sign() const; + Vector3i clamp(const Vector3i &p_min, const Vector3i &p_max) const; /* Operators */ |