dist


distance

dist
time

dist

dist(x1,y1,z2, x2,y2,z2, ...)

Returns the length of the line 3D polygonal (x1,y1,z2, x2,y2,z2, ...)

dist("a1a2...","b1b2...")

Returns the ratio of the number of different characters (same indices) in the two strings ai and bi, to the number of common characters in two strings (which must be the same size).
Two strings identical have a nul distance.
Two strings with no characters identical with the same index are separated by 1.
Examples:
dist(0,0,0,100,100,100); returns 173.205078
dist(0,0,0,100,0,0,100,100,0); returns 200
dist("0011","1011"); returns 0.25
dist("0000","1111"); returns 1

dist time

Returns the number of milli seconds between two calls.
Usefull for managing the frame rate in anyflo.
Dont call twice in the same frame.