ClosestPoints changed to return distances, signed distances or points at will