Vector4.Distance(Vector4 a, Vector4 b)
Returns the distance between a and b.
Parameters:
Name | Type | Description |
---|---|---|
a | Vector4 | a |
b | Vector4 | b |
Returns:
type | Description |
---|---|
number | distance 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
.