소스 검색

Merge pull request #44404 from Chaosus/doc_direction_to

Added a note describing a code behind Vector2/3.direction_to
Rémi Verschelde 4 년 전
부모
커밋
b09332bd4e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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>
 			<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">

+ 1 - 1
doc/classes/Vector3.xml

@@ -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">