Vec2:distance

Returns the distance to another vector.

distance = Vec2:distance(u)

Arguments

NameTypeDescription
uVec2The vector to measure the distance to.

Returns

NameTypeDescription
distancenumberThe distance to u.

See also