Skip to content

Api > Vector3 > Angle()


Vector3.Angle(Vector3 from, Vector3 to)⚓︎

Returns the angle in degrees between from and to.

Parameters:⚓︎

Name Type Description
from Vector3 The vector from which the angular difference is measured.
to Vector3 The vector to which the angular difference is measured.

Returns:⚓︎

type Description
number the angle in degrees between from and to.

Usage⚓︎

---@type Vector3
local from;

---@type Vector3
local to;


local val0 = Vector3:Angle(from, to)