Distance
7/14/25Less than 1 minute
Vector2.Distance(Vector2 a, Vector2 b)
Returns the distance between a and b.
Parameters:
Name | Type | Description |
---|---|---|
a | Vector2 | a |
b | Vector2 | b |
Returns:
type | Description |
---|---|
number | distance between a and b. |
Usage
---@type Vector2
local a;
---@type Vector2
local b;
local val0 = Vector2:Distance(a, b)