Merge pull request #27452 from Chaosus/direction_to
Added method to retrieve a direction vector from one point to another
This commit is contained in:
commit
7f3373d79f
7 changed files with 46 additions and 0 deletions
|
|
@ -112,6 +112,15 @@
|
|||
Cubicly 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 in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="direction_to">
|
||||
<return type="Vector2">
|
||||
</return>
|
||||
<argument index="0" name="b" type="Vector2">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the normalized vector pointing from this vector to [code]b[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="distance_squared_to">
|
||||
<return type="float">
|
||||
</return>
|
||||
|
|
|
|||
|
|
@ -81,6 +81,15 @@
|
|||
Performs a cubic interpolation between vectors [code]pre_a[/code], [code]a[/code], [code]b[/code], [code]post_b[/code] ([code]a[/code] is current), by the given amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="direction_to">
|
||||
<return type="Vector3">
|
||||
</return>
|
||||
<argument index="0" name="b" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the normalized vector pointing from this vector to [code]b[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="distance_squared_to">
|
||||
<return type="float">
|
||||
</return>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue