d3 / d3-polygon

Geometric operations for two-dimensional polygons.
https://d3js.org/d3-polygon
ISC License
97 stars 25 forks source link

Why do counterclockwise polygons have positive area? #6

Closed mbostock closed 4 years ago

mbostock commented 8 years ago

Wouldn’t it make more sense to have clockwise polygons be positive? I can’t remember why we chose this convention.

Fil commented 4 years ago

I don't think we would want to change that convention. It works either way :)