Rename Vector2 clamped to limit_length and add limit_length to Vector3

This commit is contained in:
Aaron Franke
2021-02-01 00:42:00 -05:00
parent f288a79482
commit 94bc0bd919
10 changed files with 75 additions and 35 deletions

View File

@@ -110,15 +110,6 @@
Returns the vector with all components rounded up (towards positive infinity).
</description>
</method>
<method name="clamped" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="length" type="float">
</argument>
<description>
Returns the vector with a maximum length by limiting its length to [code]length[/code].
</description>
</method>
<method name="cross" qualifiers="const">
<return type="float">
</return>
@@ -232,6 +223,15 @@
Returns the result of the linear interpolation between this vector and [code]to[/code] by amount [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation.
</description>
</method>
<method name="limit_length" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="length" type="float" default="1.0">
</argument>
<description>
Returns the vector with a maximum length by limiting its length to [code]length[/code].
</description>
</method>
<method name="move_toward" qualifiers="const">
<return type="Vector2">
</return>