will be calculated to determinate the closest handle Returns ------- index, distance : index of the handle and its distance from position x, y r¡