shape ops work in progress

git-svn-id: http://skia.googlecode.com/svn/trunk@7836 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/QuadraticSubDivide.cpp b/experimental/Intersection/QuadraticSubDivide.cpp
index a889825..2ced9e3 100644
--- a/experimental/Intersection/QuadraticSubDivide.cpp
+++ b/experimental/Intersection/QuadraticSubDivide.cpp
@@ -50,6 +50,15 @@
     /* by = */ dst[1].y = 2*dy - (ay + cy)/2;
 }
 
+_Point sub_divide(const Quadratic& src, const _Point& a, const _Point& c, double t1, double t2) {
+    _Point b;
+    double dx = interp_quad_coords(&src[0].x, (t1 + t2) / 2);
+    double dy = interp_quad_coords(&src[0].y, (t1 + t2) / 2);
+    b.x = 2 * dx - (a.x + c.x) / 2;
+    b.y = 2 * dy - (a.y + c.y) / 2;
+    return b;
+}
+
 /* classic one t subdivision */
 static void interp_quad_coords(const double* src, double* dst, double t)
 {