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-02-04 14:06:49 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-04 14:06:49 +0000
commitf9502d7dfad5b361a3cdaa42eb75b593c95f79d8 (patch)
treee793008849660a64c24dfc30aaae7347a1f46c82 /experimental/Intersection/LineCubicIntersection.cpp
parent9dde018753c4d16cdc60c008c32bb0b573a82944 (diff)
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7535 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/LineCubicIntersection.cpp')
-rw-r--r--experimental/Intersection/LineCubicIntersection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/experimental/Intersection/LineCubicIntersection.cpp b/experimental/Intersection/LineCubicIntersection.cpp
index cc63099fd1..faed89fe91 100644
--- a/experimental/Intersection/LineCubicIntersection.cpp
+++ b/experimental/Intersection/LineCubicIntersection.cpp
@@ -287,3 +287,8 @@ int intersect(const Cubic& cubic, const _Line& line, Intersections& i) {
LineCubicIntersections c(cubic, line, i);
return c.intersect();
}
+
+int intersectRay(const Cubic& cubic, const _Line& line, Intersections& i) {
+ LineCubicIntersections c(cubic, line, i);
+ return c.intersectRay(i.fT[0]);
+}