mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current 3.4 branch
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
:github_url: hide
|
||||
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the Vector2.xml source instead.
|
||||
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
||||
|
||||
@@ -27,11 +27,11 @@ Tutorials
|
||||
|
||||
- :doc:`../tutorials/math/vectors_advanced`
|
||||
|
||||
- `3Blue1Brown Essence of Linear Algebra <https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab>`_
|
||||
- `3Blue1Brown Essence of Linear Algebra <https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab>`__
|
||||
|
||||
- `Matrix Transform Demo <https://godotengine.org/asset-library/asset/584>`_
|
||||
- `Matrix Transform Demo <https://godotengine.org/asset-library/asset/584>`__
|
||||
|
||||
- `All 2D Demos <https://github.com/godotengine/godot-demo-projects/tree/master/2d>`_
|
||||
- `All 2D Demos <https://github.com/godotengine/godot-demo-projects/tree/master/2d>`__
|
||||
|
||||
Properties
|
||||
----------
|
||||
@@ -206,6 +206,8 @@ 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>`__
|
||||
|
||||
Equivalent to the result of :ref:`@GDScript.atan2<class_@GDScript_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)``.
|
||||
|
||||
----
|
||||
@@ -216,6 +218,8 @@ Equivalent to the result of :ref:`@GDScript.atan2<class_@GDScript_method_atan2>`
|
||||
|
||||
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>`__
|
||||
|
||||
----
|
||||
|
||||
.. _class_Vector2_method_angle_to_point:
|
||||
@@ -224,6 +228,8 @@ Returns the angle to the given vector, in radians.
|
||||
|
||||
Returns the angle between the line connecting the two points and the X axis, in radians.
|
||||
|
||||
`Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle_to_point.png>`__
|
||||
|
||||
----
|
||||
|
||||
.. _class_Vector2_method_aspect:
|
||||
|
||||
Reference in New Issue
Block a user