Browse Source

Added a note describing a code behind Vector2/3.direction_to

Yuri Roubinsky 4 years ago
parent
commit
fa0683ed30
2 changed files with 2 additions and 2 deletions
  1. 1 1
      doc/classes/Vector2.xml
  2. 1 1
      doc/classes/Vector3.xml

+ 1 - 1
doc/classes/Vector2.xml

@@ -149,7 +149,7 @@
 			<argument index="0" name="b" type="Vector2">
 			<argument index="0" name="b" type="Vector2">
 			</argument>
 			</argument>
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="distance_squared_to">
 		<method name="distance_squared_to">

+ 1 - 1
doc/classes/Vector3.xml

@@ -117,7 +117,7 @@
 			<argument index="0" name="b" type="Vector3">
 			<argument index="0" name="b" type="Vector3">
 			</argument>
 			</argument>
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="distance_squared_to">
 		<method name="distance_squared_to">