aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/Intersection/LineCubicIntersection.cpp
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-13 20:29:41 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-13 20:29:41 +0000
commit1304bb25aa3b0baa61fc2e2900fabcef88801b59 (patch)
treeed0c2c346ba327cc82e1d8850f840adeb4270cd3 /experimental/Intersection/LineCubicIntersection.cpp
parentdcf9c19d38d366a9f27ad0d8b5bda327c5edb164 (diff)
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@8137 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/LineCubicIntersection.cpp')
-rw-r--r--experimental/Intersection/LineCubicIntersection.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/experimental/Intersection/LineCubicIntersection.cpp b/experimental/Intersection/LineCubicIntersection.cpp
index 1e97ab27fa..c433fc2a29 100644
--- a/experimental/Intersection/LineCubicIntersection.cpp
+++ b/experimental/Intersection/LineCubicIntersection.cpp
@@ -229,21 +229,21 @@ void flip() {
}
}
-bool pinTs(double& cubicT, double& lineT) {
+static bool pinTs(double& cubicT, double& lineT) {
if (!approximately_one_or_less(lineT)) {
return false;
}
if (!approximately_zero_or_more(lineT)) {
return false;
}
- if (cubicT < 0) {
+ if (precisely_less_than_zero(cubicT)) {
cubicT = 0;
- } else if (cubicT > 1) {
+ } else if (precisely_greater_than_one(cubicT)) {
cubicT = 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;