diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-02-01 00:42:00 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-06-03 12:04:57 -0400 |
commit | 94bc0bd9193d5e361bbe657d59a492467f129721 (patch) | |
tree | 2adf53e9a8efb9d027961eeb0c5726e47be9bbe1 /core/math/vector3.h | |
parent | f288a79482ad5272d872fdc84fdb64a228334d8e (diff) | |
download | redot-engine-94bc0bd9193d5e361bbe657d59a492467f129721.tar.gz |
Rename Vector2 clamped to limit_length and add limit_length to Vector3
Diffstat (limited to 'core/math/vector3.h')
-rw-r--r-- | core/math/vector3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/vector3.h b/core/math/vector3.h index adfc52566f..8bab8fd847 100644 --- a/core/math/vector3.h +++ b/core/math/vector3.h @@ -86,6 +86,7 @@ struct Vector3 { _FORCE_INLINE_ Vector3 normalized() const; _FORCE_INLINE_ bool is_normalized() const; _FORCE_INLINE_ Vector3 inverse() const; + Vector3 limit_length(const real_t p_len = 1.0) const; _FORCE_INLINE_ void zero(); |