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 | 7 |
8 #ifndef SkPathOpsQuad_DEFINED | 8 #ifndef SkPathOpsQuad_DEFINED |
9 #define SkPathOpsQuad_DEFINED | 9 #define SkPathOpsQuad_DEFINED |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 SkDPoint subDivide(const SkDPoint& a, const SkDPoint& c, double t1, double t
2) const; | 55 SkDPoint subDivide(const SkDPoint& a, const SkDPoint& c, double t1, double t
2) const; |
56 static SkDPoint SubDivide(const SkPoint pts[3], const SkDPoint& a, const SkD
Point& c, | 56 static SkDPoint SubDivide(const SkPoint pts[3], const SkDPoint& a, const SkD
Point& c, |
57 double t1, double t2) { | 57 double t1, double t2) { |
58 SkDQuad quad; | 58 SkDQuad quad; |
59 quad.set(pts); | 59 quad.set(pts); |
60 return quad.subDivide(a, c, t1, t2); | 60 return quad.subDivide(a, c, t1, t2); |
61 } | 61 } |
62 SkDCubic toCubic() const; | 62 SkDCubic toCubic() const; |
63 SkDPoint top(double startT, double endT) const; | 63 SkDPoint top(double startT, double endT) const; |
64 | 64 |
65 #ifdef SK_DEBUG | 65 // utilities callable by the user from the debugger when the implementation
code is linked in |
66 void dump(); | 66 void dump() const; |
67 #endif | 67 void dumpComma(const char*) const; |
| 68 |
68 private: | 69 private: |
69 // static double Tangent(const double* quadratic, double t); // uncalled | 70 // static double Tangent(const double* quadratic, double t); // uncalled |
70 }; | 71 }; |
71 | 72 |
72 #endif | 73 #endif |
OLD | NEW |