Merge pull request #44404 from Chaosus/doc_direction_to

Added a note describing a code behind Vector2/3.direction_to
This commit is contained in:
Rémi Verschelde 2020-12-16 14:18:59 +01:00 committed by GitHub
commit b09332bd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@
<argument index="0" name="b" type="Vector2">
</argument>
<description>
Returns the normalized vector pointing from this vector to [code]b[/code].
Returns the normalized vector pointing from this vector to [code]b[/code]. This is equivalent to using [code](b - a).normalized()[/code].
</description>
</method>
<method name="distance_squared_to">

View file

@ -117,7 +117,7 @@
<argument index="0" name="b" type="Vector3">
</argument>
<description>
Returns the normalized vector pointing from this vector to [code]b[/code].
Returns the normalized vector pointing from this vector to [code]b[/code]. This is equivalent to using [code](b - a).normalized()[/code].
</description>
</method>
<method name="distance_squared_to">