|
@@ -402,7 +402,7 @@ Returns this vector's angle with respect to the positive X axis, or ``(1, 0)`` v
|
|
|
|
|
|
For example, ``Vector2.RIGHT.angle()`` will return zero, ``Vector2.DOWN.angle()`` will return ``PI / 2`` (a quarter turn, or 90 degrees), and ``Vector2(1, -1).angle()`` will return ``-PI / 4`` (a negative eighth turn, or -45 degrees).
|
|
|
|
|
|
-\ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle.png>`__\
|
|
|
+\ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/4.0/img/vector2_angle.png>`__\
|
|
|
|
|
|
Equivalent to the result of :ref:`@GlobalScope.atan2<class_@GlobalScope_method_atan2>` when called with the vector's :ref:`y<class_Vector2_property_y>` and :ref:`x<class_Vector2_property_x>` as parameters: ``atan2(y, x)``.
|
|
|
|
|
@@ -418,7 +418,7 @@ Equivalent to the result of :ref:`@GlobalScope.atan2<class_@GlobalScope_method_a
|
|
|
|
|
|
Returns the angle to the given vector, in radians.
|
|
|
|
|
|
-\ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle_to.png>`__
|
|
|
+\ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/4.0/img/vector2_angle_to.png>`__
|
|
|
|
|
|
.. rst-class:: classref-item-separator
|
|
|
|
|
@@ -434,7 +434,7 @@ Returns the angle between the line connecting the two points and the X axis, in
|
|
|
|
|
|
\ ``a.angle_to_point(b)`` is equivalent of doing ``(b - a).angle()``.
|
|
|
|
|
|
-\ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle_to_point.png>`__
|
|
|
+\ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/4.0/img/vector2_angle_to_point.png>`__
|
|
|
|
|
|
.. rst-class:: classref-item-separator
|
|
|
|