Skip to main content

Vector4.Distance(Vector4 a, Vector4 b)

Returns the distance between a and b.

Parameters:

NameTypeDescription
aVector4a
bVector4b

Returns:

typeDescription
numberdistance between a and b.

Usage

---@type Vector4
local a;

---@type Vector4
local b;


local val0 = Vector4:Distance(a, b)

Extra Detail

Vector4.Distance(a,b) is the same as (a-b).magnitude.