Click or drag to resize

Vector2Angle Method

Returns this vector's angle with respect to the X axis, or (1, 0) vector, in radians. Equivalent to the result of Atan2(Single, Single) when called with the vector's `y` and `x` as parameters: `Mathf.Atan2(v.y, v.x)`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public float Angle()

Return Value

Type: Single
The angle of this vector, in radians.
See Also