mbostock/d3 — pull request #826 by jasondavies (2012-09-28 09:54:08+00:00)
Title: Only attempt to resample if distance < δ.

This improves performance in the case where our input data is already of a high enough resolution, even when subject to distortion.

It’s unlikely that the Douglas–Peucker estimate (perpendicular distance) will be greater than δ if the two input points are already closer than 2δ.