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/QuadraticUtilities.h b/experimental/Intersection/QuadraticUtilities.h
index 46f6745..2b7e34a 100644
--- a/experimental/Intersection/QuadraticUtilities.h
+++ b/experimental/Intersection/QuadraticUtilities.h
@@ -4,7 +4,7 @@
* b = 2*B - 2*C
* c = C
*/
-static void set_abc(const double* quad, double& a, double& b, double& c) {
+inline void set_abc(const double* quad, double& a, double& b, double& c) {
a = quad[0]; // a = A
b = 2 * quad[2]; // b = 2*B
c = quad[4]; // c = C
@@ -12,3 +12,5 @@
a -= b; // a = A - 2*B + C
b -= c; // b = 2*B - 2*C
}
+
+int quadraticRoots(double A, double B, double C, double t[2]);