Click or drag to resize

Vector2AngleToPoint Method

Returns the angle between the line connecting the two points and the X axis, in radians.

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

Parameters

to
Type: GodotVector2
The other vector to compare this vector to.

Return Value

Type: Single
The angle between the two vectors, in radians.
See Also