Godot Engine – Multi-platform 2D and 3D game engine
Make direction_to() consistent for all vector classes
Per Lindstrand08a25809a81b
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xmlindex 0214246683b..f40b813ac8e 100644--- a/doc/classes/Vector3.xml+++ b/doc/classes/Vector3.xml@@ -148,7 +148,8 @@<return type="Vector3" /><param index="0" name="to" type="Vector3" /><description>- Returns the normalized vector pointing from this vector to [param to]. This is equivalent to using [code](b - a).normalized()[/code].+ Returns the normalized vector pointing from this vector to [param to].+ [code]a.direction_to(b)[/code] is equivalent to [code](b - a).normalized()[/code]. See also [method normalized].</description></method><method name="distance_squared_to" qualifiers="const">diff --git a/doc/classes/Vector4.xml b/doc/classes/Vector4.xmlindex 9314f09351d..4328a0a61aa 100644--- a/doc/classes/Vector4.xml+++ b/doc/classes/Vector4.xml@@ -100,7 +100,8 @@<return type="Vector4" /><param index="0" name="to" type="Vector4" /><description>- Returns the normalized vector pointing from this vector to [param to]. This is equivalent to using [code](b - a).normalized()[/code].+ Returns the normalized vector pointing from this vector to [param to].+ [code]a.direction_to(b)[/code] is equivalent to [code](b - a).normalized()[/code]. See also [method normalized].</description></method><method name="distance_squared_to" qualifiers="const">