Index: src/pathops/SkPathOpsLine.h |
diff --git a/src/pathops/SkPathOpsLine.h b/src/pathops/SkPathOpsLine.h |
index bb2516286013e0784f2d4e8a31a5b2aebcdf1993..74eb6153488814e7a3ad41cdec71f9b4a0ab1030 100644 |
--- a/src/pathops/SkPathOpsLine.h |
+++ b/src/pathops/SkPathOpsLine.h |
@@ -20,20 +20,27 @@ |
fPts[1] = pts[1]; |
} |
+ static SkDLine SubDivide(const SkPoint a[2], double t1, double t2) { |
+ SkDLine line; |
+ line.set(a); |
+ return line.subDivide(t1, t2); |
+ } |
+ |
double exactPoint(const SkDPoint& xy) const; |
static double ExactPointH(const SkDPoint& xy, double left, double right, double y); |
static double ExactPointV(const SkDPoint& xy, double top, double bottom, double x); |
- |
- // only used by testing |
double isLeft(const SkDPoint& pt) const; |
- |
double nearPoint(const SkDPoint& xy, bool* unequal) const; |
bool nearRay(const SkDPoint& xy) const; |
static double NearPointH(const SkDPoint& xy, double left, double right, double y); |
static double NearPointV(const SkDPoint& xy, double top, double bottom, double x); |
+ static bool NearRay(double dx1, double dy1, double dx2, double dy2); |
SkDPoint ptAtT(double t) const; |
+ SkDLine subDivide(double t1, double t2) const; |
void dump() const; |
+private: |
+ SkDVector tangent() const { return fPts[0] - fPts[1]; } |
}; |
#endif |