diff options
author | Chaosus <chaosus89@gmail.com> | 2019-03-27 13:51:05 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2019-04-05 17:09:57 +0300 |
commit | 55f3bd97a270b691c26d6eda70bc7c0a3ec8f4e8 (patch) | |
tree | 2026f7241b7e7670ffb97ceff22962ce90b432f7 /doc/classes/Vector2.xml | |
parent | 6574c557c962d9e4dd726b494322aea246a0245a (diff) |
Added direction_to method to vectors
Diffstat (limited to 'doc/classes/Vector2.xml')
-rw-r--r-- | doc/classes/Vector2.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index 1770dec80d..0cbfc87e78 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -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> |