Thanks Michael,
Do you know how will look the function for calculating the distance from a particle to a vector ?