distance from a point to a vector complete