Vector.dist

v0.1.6
Vector.dist(a, b);

No description

Arguments

aThe first point
bThe second point

Returns

numberThe distance between the two points

local a = createVector(300, 500);
local b = createVector(200, 250);

local distance = a:dist(b);
print(distance);
See Vector.dist in lu5_vector.h