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