Skip to main content

Vector2.Distance(Vector2 a, Vector2 b)

Returns the distance between a and b.

Parameters:

NameTypeDescription
aVector2a
bVector2b

Returns:

typeDescription
numberdistance between a and b.

Usage

---@type Vector2
local a;

---@type Vector2
local b;


local val0 = Vector2:Distance(a, b)