Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b48047 commit 95502a6Copy full SHA for 95502a6
1 file changed
src/_path.cpp
@@ -1,3 +1,6 @@
1
+#include <limits>
2
+#include <math.h>
3
+
4
#include "agg_py_path_iterator.h"
5
#include "agg_py_transforms.h"
6
@@ -997,10 +1000,10 @@ Py::Object _path_module::count_bboxes_overlapping_bbox(const Py::Tuple& args)
997
1000
std::swap(bx0, bx1);
998
1001
if (by1 < by0)
999
1002
std::swap(by0, by1);
- if (not ((bx1 <= ax0) or
- (by1 <= ay0) or
- (bx0 >= ax1) or
1003
- (by0 >= ay1)))
+ if (!((bx1 <= ax0) ||
1004
+ (by1 <= ay0) ||
1005
+ (bx0 >= ax1) ||
1006
+ (by0 >= ay1)))
1007
++count;
1008
}
1009
else
0 commit comments