summaryrefslogtreecommitdiffstats
path: root/core/math/vector3.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-02-01 00:42:00 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-06-03 12:04:57 -0400
commit94bc0bd9193d5e361bbe657d59a492467f129721 (patch)
tree2adf53e9a8efb9d027961eeb0c5726e47be9bbe1 /core/math/vector3.h
parentf288a79482ad5272d872fdc84fdb64a228334d8e (diff)
downloadredot-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.h1
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();