Skip to content

Commit

Permalink
fix thinko in polygonEdge() ?
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@74679 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
murrell committed May 2, 2018
1 parent e0b8474 commit 9d4a378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/grid/src/grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -1582,10 +1582,10 @@ static void polygonEdge(double *x, double *y, int n,
* so check is more complicated
*/
if ((vangle1 >= vangle2 &&
vangle1 >= angle && vangle2 < angle) ||
vangle1 >= angle && vangle2 <= angle) ||
(vangle1 < vangle2 &&
((vangle1 >= angle && 0 <= angle) ||
(vangle2 < angle && 2*M_PI >= angle)))) {
(vangle2 <= angle && 2*M_PI >= angle)))) {
found = 1;
break;
}
Expand Down

0 comments on commit 9d4a378

Please sign in to comment.