commit | 4917f17bf6bd8bff7f4b03717dcb02561cf227c9 | [log] [tgz] |
---|---|---|
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Mar 05 22:01:21 2012 +0000 |
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Mar 05 22:01:21 2012 +0000 |
tree | 9ffe08f80aab2c515e30f271a1a8c4061b8bb64d | |
parent | ceb441476e1712861e87a9bb428f119349ef6bb5 [diff] [blame] |
work in progress of note, all edge walker tests succeed at this point git-svn-id: http://skia.googlecode.com/svn/trunk@3330 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/LineIntersection.cpp b/experimental/Intersection/LineIntersection.cpp index 99b9e82..4d80606 100644 --- a/experimental/Intersection/LineIntersection.cpp +++ b/experimental/Intersection/LineIntersection.cpp
@@ -59,7 +59,7 @@ bRange[0] = aMin <= bMin ? 0 : (aMin - bMin) / (bMax - bMin); bRange[1] = aMax >= bMax ? 1 : (aMax - bMin) / (bMax - bMin); } - return 2; + return 1 + ((aRange[0] != aRange[1]) || (bRange[0] != bRange[1])); } } double ab0y = a[0].y - b[0].y;