| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef SkIntersections_DEFINE | 7 #ifndef SkIntersections_DEFINE |
| 8 #define SkIntersections_DEFINE | 8 #define SkIntersections_DEFINE |
| 9 | 9 |
| 10 #include "SkPathOpsCubic.h" | 10 #include "SkPathOpsCubic.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void insertCoincident(double one, double two, const SkDPoint& pt); | 200 void insertCoincident(double one, double two, const SkDPoint& pt); |
| 201 void insertCoincidentPair(double s1, double e1, double s2, double e2, | 201 void insertCoincidentPair(double s1, double e1, double s2, double e2, |
| 202 const SkDPoint& startPt, const SkDPoint& endPt); | 202 const SkDPoint& startPt, const SkDPoint& endPt); |
| 203 int intersect(const SkDLine&, const SkDLine&); | 203 int intersect(const SkDLine&, const SkDLine&); |
| 204 int intersect(const SkDQuad&, const SkDLine&); | 204 int intersect(const SkDQuad&, const SkDLine&); |
| 205 int intersect(const SkDQuad&, const SkDQuad&); | 205 int intersect(const SkDQuad&, const SkDQuad&); |
| 206 int intersect(const SkDCubic&); // return true if cubic self-intersects | 206 int intersect(const SkDCubic&); // return true if cubic self-intersects |
| 207 int intersect(const SkDCubic&, const SkDLine&); | 207 int intersect(const SkDCubic&, const SkDLine&); |
| 208 int intersect(const SkDCubic&, const SkDQuad&); | 208 int intersect(const SkDCubic&, const SkDQuad&); |
| 209 int intersect(const SkDCubic&, const SkDCubic&); | 209 int intersect(const SkDCubic&, const SkDCubic&); |
| 210 int intersectRay(const SkDCubic& , const SkDLine&); | 210 int intersectRay(const SkDLine&, const SkDLine&); |
| 211 int intersectRay(const SkDQuad& , const SkDLine&); | 211 int intersectRay(const SkDQuad&, const SkDLine&); |
| 212 static SkDPoint Line(const SkDLine& , const SkDLine&); | 212 int intersectRay(const SkDCubic&, const SkDLine&); |
| 213 static SkDPoint Line(const SkDLine&, const SkDLine&); |
| 213 void offset(int base, double start, double end); | 214 void offset(int base, double start, double end); |
| 214 void quickRemoveOne(int index, int replace); | 215 void quickRemoveOne(int index, int replace); |
| 215 static bool Test(const SkDLine& , const SkDLine&); | 216 static bool Test(const SkDLine& , const SkDLine&); |
| 216 int vertical(const SkDLine&, double x); | 217 int vertical(const SkDLine&, double x); |
| 217 int vertical(const SkDLine&, double top, double bottom, double x, bool flipp
ed); | 218 int vertical(const SkDLine&, double top, double bottom, double x, bool flipp
ed); |
| 218 int vertical(const SkDQuad&, double top, double bottom, double x, bool flipp
ed); | 219 int vertical(const SkDQuad&, double top, double bottom, double x, bool flipp
ed); |
| 219 int vertical(const SkDCubic&, double top, double bottom, double x, bool flip
ped); | 220 int vertical(const SkDCubic&, double top, double bottom, double x, bool flip
ped); |
| 220 int verticalCubic(const SkPoint a[4], SkScalar top, SkScalar bottom, SkScala
r x, bool flipped); | 221 int verticalCubic(const SkPoint a[4], SkScalar top, SkScalar bottom, SkScala
r x, bool flipped); |
| 221 int verticalLine(const SkPoint a[2], SkScalar top, SkScalar bottom, SkScalar
x, bool flipped); | 222 int verticalLine(const SkPoint a[2], SkScalar top, SkScalar bottom, SkScalar
x, bool flipped); |
| 222 int verticalQuad(const SkPoint a[3], SkScalar top, SkScalar bottom, SkScalar
x, bool flipped); | 223 int verticalQuad(const SkPoint a[3], SkScalar top, SkScalar bottom, SkScalar
x, bool flipped); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 242 #ifdef SK_DEBUG | 243 #ifdef SK_DEBUG |
| 243 int fDepth; | 244 int fDepth; |
| 244 #endif | 245 #endif |
| 245 }; | 246 }; |
| 246 | 247 |
| 247 extern int (SkIntersections::*CurveRay[])(const SkPoint[], const SkDLine& ); | 248 extern int (SkIntersections::*CurveRay[])(const SkPoint[], const SkDLine& ); |
| 248 extern int (SkIntersections::*CurveVertical[])(const SkPoint[], SkScalar top, Sk
Scalar bottom, | 249 extern int (SkIntersections::*CurveVertical[])(const SkPoint[], SkScalar top, Sk
Scalar bottom, |
| 249 SkScalar x, bool flipped); | 250 SkScalar x, bool flipped); |
| 250 | 251 |
| 251 #endif | 252 #endif |
| OLD | NEW |