can get closest point to a point