Replace minimum projected distance threshold with angular distance threshold.