aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/Intersection/CubicBezierClip.cpp
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-17 21:02:47 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-17 21:02:47 +0000
commit73ca6243b31e225e9fd5b75a96cbc82d62557de6 (patch)
treef23c55585c47e26f28afdd7b8635b7065a81f06b /experimental/Intersection/CubicBezierClip.cpp
parent148a3961b1c82a891012f2feb2a875cea2593170 (diff)
shape ops work in progress
mostly working on cubic/cubic intersect git-svn-id: http://skia.googlecode.com/svn/trunk@7266 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/CubicBezierClip.cpp')
-rw-r--r--experimental/Intersection/CubicBezierClip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/Intersection/CubicBezierClip.cpp b/experimental/Intersection/CubicBezierClip.cpp
index d0141e9413..825a7b961e 100644
--- a/experimental/Intersection/CubicBezierClip.cpp
+++ b/experimental/Intersection/CubicBezierClip.cpp
@@ -26,7 +26,8 @@ bool bezier_clip(const Cubic& cubic1, const Cubic& cubic2, double& minT, double&
}
double distance[2];
- endLine.controlPtDistance(cubic1, distance);
+ distance[0] = endLine.controlPtDistance(cubic1, 1);
+ distance[1] = endLine.controlPtDistance(cubic1, 2);
// find fat line
double top = distance[0];
@@ -87,4 +88,3 @@ bool bezier_clip(const Cubic& cubic1, const Cubic& cubic2, double& minT, double&
return minT < maxT; // returns false if distance shows no intersection
}
-