Use angular, not projected, distance for sampling threshold.

Fixes #1332.