|
@@ -59,7 +59,7 @@
|
|
|
<description>
|
|
|
Returns this vector's angle with respect to the positive X axis, or [code](1, 0)[/code] vector, in radians.
|
|
|
For example, [code]Vector2.RIGHT.angle()[/code] will return zero, [code]Vector2.DOWN.angle()[/code] will return [code]PI / 2[/code] (a quarter turn, or 90 degrees), and [code]Vector2(1, -1).angle()[/code] will return [code]-PI / 4[/code] (a negative eighth turn, or -45 degrees).
|
|
|
- [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle.png]Illustration of the returned angle.[/url]
|
|
|
+ [url=https://raw.githubusercontent.com/godotengine/godot-docs/4.0/img/vector2_angle.png]Illustration of the returned angle.[/url]
|
|
|
Equivalent to the result of [method @GlobalScope.atan2] when called with the vector's [member y] and [member x] as parameters: [code]atan2(y, x)[/code].
|
|
|
</description>
|
|
|
</method>
|
|
@@ -68,7 +68,7 @@
|
|
|
<param index="0" name="to" type="Vector2" />
|
|
|
<description>
|
|
|
Returns the angle to the given vector, in radians.
|
|
|
- [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle_to.png]Illustration of the returned angle.[/url]
|
|
|
+ [url=https://raw.githubusercontent.com/godotengine/godot-docs/4.0/img/vector2_angle_to.png]Illustration of the returned angle.[/url]
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="angle_to_point" qualifiers="const">
|
|
@@ -77,7 +77,7 @@
|
|
|
<description>
|
|
|
Returns the angle between the line connecting the two points and the X axis, in radians.
|
|
|
[code]a.angle_to_point(b)[/code] is equivalent of doing [code](b - a).angle()[/code].
|
|
|
- [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/vector2_angle_to_point.png]Illustration of the returned angle.[/url]
|
|
|
+ [url=https://raw.githubusercontent.com/godotengine/godot-docs/4.0/img/vector2_angle_to_point.png]Illustration of the returned angle.[/url]
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="aspect" qualifiers="const">
|