Vec3:distance

Edit

Returns the distance to another vector.



Arguments

NameTypeDescription
uVec3 The vector to measure the distance to.

Returns

NameTypeDescription
distancenumber The distance to u.

Arguments

NameTypeDescription
xnumber A value of x component to measure distance to.
ynumber A value of y component to measure distance to.
znumber A value of z component to measure distance to.

Returns

NameTypeDescription
distancenumber The distance to u.

See also