Improve some argument names for core types

This commit is contained in:
kleonc
2021-04-22 19:59:16 +02:00
parent aa4cb409ce
commit 4d7f642fb3
19 changed files with 177 additions and 174 deletions

View File

@@ -111,10 +111,10 @@
</argument>
<argument index="2" name="post_b" type="Vector2">
</argument>
<argument index="3" name="t" type="float">
<argument index="3" name="weight" type="float">
</argument>
<description>
Cubically interpolates between this vector and [code]b[/code] using [code]pre_a[/code] and [code]post_b[/code] as handles, and returns the result at position [code]t[/code]. [code]t[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation.
Cubically interpolates between this vector and [code]b[/code] using [code]pre_a[/code] and [code]post_b[/code] as handles, and returns the result at position [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="direction_to">
@@ -198,12 +198,12 @@
<method name="linear_interpolate">
<return type="Vector2">
</return>
<argument index="0" name="b" type="Vector2">
<argument index="0" name="to" type="Vector2">
</argument>
<argument index="1" name="t" type="float">
<argument index="1" name="weight" type="float">
</argument>
<description>
Returns the result of the linear interpolation between this vector and [code]b[/code] by amount [code]t[/code]. [code]t[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation.
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="move_toward">
@@ -286,12 +286,12 @@
<method name="slerp">
<return type="Vector2">
</return>
<argument index="0" name="b" type="Vector2">
<argument index="0" name="to" type="Vector2">
</argument>
<argument index="1" name="t" type="float">
<argument index="1" name="weight" type="float">
</argument>
<description>
Returns the result of spherical linear interpolation between this vector and [code]b[/code], by amount [code]t[/code]. [code]t[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation.
Returns the result of spherical 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.
[b]Note:[/b] Both vectors must be normalized.
</description>
</method>