Skip to content

Commit

Permalink
Fixes #2025 for me
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Appelhans committed Mar 31, 2016
1 parent c36befc commit dab64a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geo/point-in-polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ function d3_geo_pointInPolygon(point, polygon) {
// from the point to the South pole. If it is zero, then the point is the
// same side as the South pole.

return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < 0) ^ (winding & 1);
return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < -ε) ^ (winding & 1);
}

0 comments on commit dab64a2

Please sign in to comment.