shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@8137 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/LineQuadraticIntersection.cpp b/experimental/Intersection/LineQuadraticIntersection.cpp
index 3cc27e5..f855d97 100644
--- a/experimental/Intersection/LineQuadraticIntersection.cpp
+++ b/experimental/Intersection/LineQuadraticIntersection.cpp
@@ -264,21 +264,21 @@
}
}
-bool pinTs(double& quadT, double& lineT) {
+static bool pinTs(double& quadT, double& lineT) {
if (!approximately_one_or_less(lineT)) {
return false;
}
if (!approximately_zero_or_more(lineT)) {
return false;
}
- if (quadT < 0) {
+ if (precisely_less_than_zero(quadT)) {
quadT = 0;
- } else if (quadT > 1) {
+ } else if (precisely_greater_than_one(quadT)) {
quadT = 1;
}
- if (lineT < 0) {
+ if (precisely_less_than_zero(lineT)) {
lineT = 0;
- } else if (lineT > 1) {
+ } else if (precisely_greater_than_one(lineT)) {
lineT = 1;
}
return true;