aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/Intersection/LineCubicIntersection.cpp
diff options
context:
space:
mode:
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;