diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-30 18:47:02 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-30 18:47:02 +0000 |
commit | 198e054b33051a6cd5f606ccbc8d539cefc5631f (patch) | |
tree | a2a05181d0d6b4b8291c2764188c63b2e6aa4a14 /experimental/Intersection/CubicIntersection.h | |
parent | 06cd732eff09d8f417ced2779e216d6ce6420f59 (diff) |
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3566 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/CubicIntersection.h')
-rw-r--r-- | experimental/Intersection/CubicIntersection.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/experimental/Intersection/CubicIntersection.h b/experimental/Intersection/CubicIntersection.h deleted file mode 100644 index b918400d88..0000000000 --- a/experimental/Intersection/CubicIntersection.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef CubicIntersection_DEFINE -#define CubicIntersection_DEFINE - -#include "DataTypes.h" - -class Intersections; - -// unit-testable utilities -bool bezier_clip(const Cubic& cubic1, const Cubic& cubic2, double& minT, double& maxT); -bool bezier_clip(const Quadratic& q1, const Quadratic& q2, double& minT, double& maxT); -void chop_at(const Cubic& src, CubicPair& dst, double t); -void chop_at(const Quadratic& src, QuadraticPair& dst, double t); -int convex_hull(const Cubic& cubic, char order[4]); -bool convex_x_hull(const Cubic& cubic, char connectTo0[2], char connectTo3[2]); -bool implicit_matches(const Cubic& cubic1, const Cubic& cubic2); -bool implicit_matches(const Quadratic& quad1, const Quadratic& quad2); -void sub_divide(const Cubic& src, double t1, double t2, Cubic& dst); -void sub_divide(const Quadratic& src, double t1, double t2, Quadratic& dst); -void tangent(const Cubic& cubic, double t, _Point& result); -void tangent(const Quadratic& cubic, double t, _Point& result); - -// utilities used only for unit testing -bool point_on_parameterized_curve(const Cubic& cubic, const _Point& point); -bool point_on_parameterized_curve(const Quadratic& quad, const _Point& point); - -// main functions -enum ReduceOrder_Flags { - kReduceOrder_NoQuadraticsAllowed, - kReduceOrder_QuadraticsAllowed -}; -int reduceOrder(const Cubic& cubic, Cubic& reduction, ReduceOrder_Flags ); -int reduceOrder(const _Line& line, _Line& reduction); -int reduceOrder(const Quadratic& quad, Quadratic& reduction); -//bool intersectStart(const Cubic& cubic1, const Cubic& cubic2, Intersections& ); -bool intersectStartT(const Cubic& cubic1, const Cubic& cubic2, Intersections& ); -bool intersectStart(const Cubic& cubic, const _Line& line, Intersections& ); -bool intersectStart(const Quadratic& q1, const Quadratic& q2, Intersections& ); -bool intersectStart(const Quadratic& quad, const _Line& line, Intersections& ); - -#endif |