Skip to main content

Vector2.Angle(Vector2 from, Vector2 to)

Returns the unsigned angle in degrees between from and to.

Parameters:

NameTypeDescription
fromVector2The vector from which the angular difference is measured.
toVector2The vector to which the angular difference is measured.

Returns:

typeDescription
numberthe unsigned angle in degrees between from and to.

Usage

---@type Vector2
local from;

---@type Vector2
local to;


local val0 = Vector2:Angle(from, to)