Intersection work in progress
Review URL: https://codereview.appspot.com/5576043
git-svn-id: http://skia.googlecode.com/svn/trunk@3087 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/LineIntersection_Test.cpp b/experimental/Intersection/LineIntersection_Test.cpp
index f7d00b5..2af74d2 100644
--- a/experimental/Intersection/LineIntersection_Test.cpp
+++ b/experimental/Intersection/LineIntersection_Test.cpp
@@ -1,6 +1,7 @@
#include "CubicIntersection_Tests.h"
#include "LineIntersection.h"
+// FIXME: add tests for intersecting, non-intersecting, degenerate, coincident
const _Line tests[][2] = {
{{{166.86950047022856, 112.69654129527828}, {166.86948801592692, 112.69655741235339}},
{{166.86960700313026, 112.6965477747386}, {166.86925794355412, 112.69656471103423}}},
@@ -16,6 +17,9 @@
const _Line& line2 = tests[index][1];
_Point result;
lineIntersect(line1, line2, &result);
- printf("%s (%g,%g)\n", __FUNCTION__, result.x, result.y);
+ // FIXME: validate results
+ // see if result is between start and end of both lines
+ // see if result is on both lines
+ // printf("%s (%g,%g)\n", __FUNCTION__, result.x, result.y);
}
}