There was an error while loading. Please reload this page.
Returns the Euclidean length of a vector, or the distance between two points.
len = pymath.length(v) dist = pymath.length(v, w)
v
w
len
w - v
PYTHAGORAS(x, y, ...)
local len = pymath.length({3, 4}) -- len == 5.0 local dist = pymath.length({1, 1, 0}, {4, 5, 0}) -- dist == 5.0 local diag = pymath.length({1, 1, 1}) -- diag == 1.7320508... -- sqrt(3)
Minimum PYTHA Version: V27
pymath, pymath.normalize, pymath.dot, Math functions