Index: src/pathops/SkPathOpsQuad.h |
=================================================================== |
--- src/pathops/SkPathOpsQuad.h (revision 9425) |
+++ src/pathops/SkPathOpsQuad.h (working copy) |
@@ -19,6 +19,11 @@ |
struct SkDQuad { |
SkDPoint fPts[3]; |
+ SkDQuad flip() const { |
+ SkDQuad result = {{fPts[2], fPts[1], fPts[0]}}; |
+ return result; |
+ } |
+ |
void set(const SkPoint pts[3]) { |
fPts[0] = pts[0]; |
fPts[1] = pts[1]; |
@@ -29,6 +34,7 @@ |
SkDPoint& operator[](int n) { SkASSERT(n >= 0 && n < 3); return fPts[n]; } |
static int AddValidTs(double s[], int realRoots, double* t); |
+ void align(int endIndex, SkDPoint* dstPt) const; |
SkDQuadPair chopAt(double t) const; |
SkDVector dxdyAtT(double t) const; |
static int FindExtrema(double a, double b, double c, double tValue[1]); |