shape ops work in progress
rewrite binary edge inclusion lookup
fix warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@6726 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/LineIntersection.cpp b/experimental/Intersection/LineIntersection.cpp
index 11f42ba..c425cd1 100644
--- a/experimental/Intersection/LineIntersection.cpp
+++ b/experimental/Intersection/LineIntersection.cpp
@@ -95,11 +95,11 @@
double ab0y = a[0].y - b[0].y;
double ab0x = a[0].x - b[0].x;
double numerA = ab0y * bxLen - byLen * ab0x;
- if (numerA < 0 && denom > numerA || numerA > 0 && denom < numerA) {
+ if ((numerA < 0 && denom > numerA) || (numerA > 0 && denom < numerA)) {
return 0;
}
double numerB = ab0y * axLen - ayLen * ab0x;
- if (numerB < 0 && denom > numerB || numerB > 0 && denom < numerB) {
+ if ((numerB < 0 && denom > numerB) || (numerB > 0 && denom < numerB)) {
return 0;
}
/* Is the intersection along the the segments */