Port d3.geo.area to compute triangle area.