The functions from src/geom in the d3 repo