thanks, its a good idea
but i look for a way to calculate with vec_dist

i have no idea how i can find out wich value is the smallest

i have up to 10 values stored in a array
now i want to find out wich is the smallest one