Home | History | Annotate | Download | only in pathops

Lines Matching refs:reduction

16 static int coincident_line(const SkDQuad& quad, SkDQuad& reduction) {
17 reduction[0] = reduction[1] = quad[0];
21 static int reductionLineCount(const SkDQuad& reduction) {
22 return 1 + !reduction[0].approximatelyEqual(reduction[1]);
25 static int vertical_line(const SkDQuad& quad, SkDQuad& reduction) {
26 reduction[0] = quad[0];
27 reduction[1] = quad[2];
28 return reductionLineCount(reduction);
31 static int horizontal_line(const SkDQuad& quad, SkDQuad& reduction) {
32 reduction[0] = quad[0];
33 reduction[1] = quad[2];
34 return reductionLineCount(reduction);
38 int minX, int maxX, int minY, int maxY, SkDQuad& reduction) {
52 reduction[0] = quad[0];
53 reduction[1] = quad[2];
54 return reductionLineCount(reduction);
109 static int coincident_line(const SkDCubic& cubic, SkDCubic& reduction) {
110 reduction[0] = reduction[1] = cubic[0];
114 static int reductionLineCount(const SkDCubic& reduction) {
115 return 1 + !reduction[0].approximatelyEqual(reduction[1]);
118 static int vertical_line(const SkDCubic& cubic, SkDCubic& reduction) {
119 reduction[0] = cubic[0];
120 reduction[1] = cubic[3];
121 return reductionLineCount(reduction);
124 static int horizontal_line(const SkDCubic& cubic, SkDCubic& reduction) {
125 reduction[0] = cubic[0];
126 reduction[1] = cubic[3];
127 return reductionLineCount(reduction);
131 static int check_quadratic(const SkDCubic& cubic, SkDCubic& reduction) {
150 reduction[0] = cubic[0];
151 reduction[1].fX = midX;
152 reduction[1].fY = midY;
153 reduction[2] = cubic[3];
158 int minX, int maxX, int minY, int maxY, SkDCubic& reduction) {
172 reduction[0] = cubic[0];
173 reduction[1] = cubic[3];
174 return reductionLineCount(reduction);
178 http://objectmix.com/graphics/132906-fast-precision-driven-cubic-quadratic-piecewise-degree-reduction-algos-2-a.html