Vector2.Angle(Vector2 from, Vector2 to)
Returns the unsigned angle in degrees between from and to.
Parameters:
Name | Type | Description |
---|---|---|
from | Vector2 | The vector from which the angular difference is measured. |
to | Vector2 | The vector to which the angular difference is measured. |
Returns:
type | Description |
---|---|
number | the unsigned angle in degrees between from and to. |
Usage
---@type Vector2
local from;
---@type Vector2
local to;
local val0 = Vector2:Angle(from, to)