Vec3:distance

Returns the distance to another vector.

distance = Vec3:distance(u)

Arguments

NameTypeDescription
uVec3The vector to measure the distance to.

Returns

NameTypeDescription
distancenumberThe distance to u.

See also