diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-11-29 11:13:31 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-01-06 10:06:56 -0800 |
commit | 2c52f1646480506d6647ec71e6ea14935caf2e7e (patch) | |
tree | 0f23363d6388499376538e2fd340d412d87f3e99 /doc/classes/Vector3i.xml | |
parent | 1dee3e0cc7590480a77d5bb50a4c90e0286c5e50 (diff) |
Add length and length_squared to Vector2i/3i
Diffstat (limited to 'doc/classes/Vector3i.xml')
-rw-r--r-- | doc/classes/Vector3i.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/classes/Vector3i.xml b/doc/classes/Vector3i.xml index 9b952292b6..da729e1ec2 100644 --- a/doc/classes/Vector3i.xml +++ b/doc/classes/Vector3i.xml @@ -58,6 +58,19 @@ Returns a new vector with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. </description> </method> + <method name="length" qualifiers="const"> + <return type="float" /> + <description> + Returns the length (magnitude) of this vector. + </description> + </method> + <method name="length_squared" qualifiers="const"> + <return type="int" /> + <description> + Returns the squared length (squared magnitude) of this vector. + This method runs faster than [method length], so prefer it if you need to compare vectors or need the squared distance for some formula. + </description> + </method> <method name="max_axis_index" qualifiers="const"> <return type="int" /> <description> |