Home
last modified time | relevance | path

Searched refs:tValues (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/src/pathops/
DSkPathOpsRect.cpp20 double tValues[2]; in setBounds() local
23 roots = SkDQuad::FindExtrema(quad[0].fX, quad[1].fX, quad[2].fX, tValues); in setBounds()
26 roots += SkDQuad::FindExtrema(quad[0].fY, quad[1].fY, quad[2].fY, &tValues[roots]); in setBounds()
29 add(quad.ptAtT(tValues[x])); in setBounds()
47 double tValues[4]; in setBounds() local
50 roots = SkDCubic::FindExtrema(c[0].fX, c[1].fX, c[2].fX, c[3].fX, tValues); in setBounds()
53 roots += SkDCubic::FindExtrema(c[0].fY, c[1].fY, c[2].fY, c[3].fY, &tValues[roots]); in setBounds()
56 add(c.ptAtT(tValues[x])); in setBounds()
DSkPathOpsCubic.h40 int findInflections(double tValues[2]) const;
42 static int FindInflections(const SkPoint a[4], double tValues[2]) { in FindInflections()
45 return cubic.findInflections(tValues); in FindInflections()
48 int findMaxCurvature(double tValues[]) const;
DSkPathOpsCubic.cpp168 double tValues[2]; in serpentine()
170 return findInflections(tValues) > 1; in serpentine()
313 int SkDCubic::findInflections(double tValues[]) const { in findInflections()
320 return SkDQuad::RootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in findInflections()
339 int SkDCubic::FindExtrema(double a, double b, double c, double d, double tValues[2]) { in FindExtrema()
345 return SkDQuad::RootsValidT(A, B, C, tValues); in FindExtrema()
360 int SkDCubic::findMaxCurvature(double tValues[]) const { in findMaxCurvature()
368 return RootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in findMaxCurvature()
/external/chromium_org/third_party/skia/src/pathops/
DSkPathOpsRect.cpp20 double tValues[2]; in setBounds() local
23 roots = SkDQuad::FindExtrema(quad[0].fX, quad[1].fX, quad[2].fX, tValues); in setBounds()
26 roots += SkDQuad::FindExtrema(quad[0].fY, quad[1].fY, quad[2].fY, &tValues[roots]); in setBounds()
29 add(quad.ptAtT(tValues[x])); in setBounds()
47 double tValues[4]; in setBounds() local
50 roots = SkDCubic::FindExtrema(c[0].fX, c[1].fX, c[2].fX, c[3].fX, tValues); in setBounds()
53 roots += SkDCubic::FindExtrema(c[0].fY, c[1].fY, c[2].fY, c[3].fY, &tValues[roots]); in setBounds()
56 add(c.ptAtT(tValues[x])); in setBounds()
DSkPathOpsCubic.h40 int findInflections(double tValues[2]) const;
42 static int FindInflections(const SkPoint a[4], double tValues[2]) { in FindInflections()
45 return cubic.findInflections(tValues); in FindInflections()
48 int findMaxCurvature(double tValues[]) const;
DSkPathOpsCubic.cpp168 double tValues[2]; in serpentine()
170 return findInflections(tValues) > 1; in serpentine()
313 int SkDCubic::findInflections(double tValues[]) const { in findInflections()
320 return SkDQuad::RootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in findInflections()
339 int SkDCubic::FindExtrema(double a, double b, double c, double d, double tValues[2]) { in FindExtrema()
345 return SkDQuad::RootsValidT(A, B, C, tValues); in FindExtrema()
360 int SkDCubic::findMaxCurvature(double tValues[]) const { in findMaxCurvature()
368 return RootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in findMaxCurvature()
/external/skia/experimental/Intersection/
DCubicReduceOrder.cpp28 double tValues[2]; in vertical_line() local
36 int roots = findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, tValues); in vertical_line()
38 double yExtrema = interp_cubic_coords(&cubic[0].y, tValues[index]); in vertical_line()
51 double tValues[2]; in horizontal_line() local
59 int roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues); in horizontal_line()
61 double xExtrema = interp_cubic_coords(&cubic[0].x, tValues[index]); in horizontal_line()
127 double tValues[2]; in check_linear() local
130 roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues); in check_linear()
132 roots = findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, tValues); in check_linear()
136 extrema.x = interp_cubic_coords(&cubic[0].x, tValues[index]); in check_linear()
[all …]
DQuadraticBounds.cpp27 double tValues[2]; in setBounds() local
30 roots = findExtrema(quad[0].x, quad[1].x, quad[2].x, tValues); in setBounds()
33 roots += findExtrema(quad[0].y, quad[1].y, quad[2].y, &tValues[roots]); in setBounds()
37 xy_at_t(quad, tValues[x], result.x, result.y); in setBounds()
DCubicBounds.cpp46 double tValues[4]; in setBounds() local
49 roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues); in setBounds()
52 roots += findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, &tValues[roots]); in setBounds()
56 xy_at_t(cubic, tValues[x], result.x, result.y); in setBounds()
DExtrema.cpp60 int findExtrema(double a, double b, double c, double d, double tValues[2]) in findExtrema()
67 return findUnitQuadRoots(A, B, C, tValues); in findExtrema()
DCubicUtilities.h33 int find_cubic_inflections(const Cubic& src, double tValues[]);
34 int find_cubic_max_curvature(const Cubic& src, double tValues[]);
DExtrema.h7 int findExtrema(double a, double b, double c, double d, double tValues[2]);
/external/chromium_org/third_party/skia/experimental/Intersection/
DCubicReduceOrder.cpp28 double tValues[2]; in vertical_line() local
36 int roots = findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, tValues); in vertical_line()
38 double yExtrema = interp_cubic_coords(&cubic[0].y, tValues[index]); in vertical_line()
51 double tValues[2]; in horizontal_line() local
59 int roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues); in horizontal_line()
61 double xExtrema = interp_cubic_coords(&cubic[0].x, tValues[index]); in horizontal_line()
127 double tValues[2]; in check_linear() local
130 roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues); in check_linear()
132 roots = findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, tValues); in check_linear()
136 extrema.x = interp_cubic_coords(&cubic[0].x, tValues[index]); in check_linear()
[all …]
DQuadraticBounds.cpp27 double tValues[2]; in setBounds() local
30 roots = findExtrema(quad[0].x, quad[1].x, quad[2].x, tValues); in setBounds()
33 roots += findExtrema(quad[0].y, quad[1].y, quad[2].y, &tValues[roots]); in setBounds()
37 xy_at_t(quad, tValues[x], result.x, result.y); in setBounds()
DCubicBounds.cpp46 double tValues[4]; in setBounds() local
49 roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues); in setBounds()
52 roots += findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, &tValues[roots]); in setBounds()
56 xy_at_t(cubic, tValues[x], result.x, result.y); in setBounds()
DExtrema.cpp60 int findExtrema(double a, double b, double c, double d, double tValues[2]) in findExtrema()
67 return findUnitQuadRoots(A, B, C, tValues); in findExtrema()
DCubicUtilities.h33 int find_cubic_inflections(const Cubic& src, double tValues[]);
34 int find_cubic_max_curvature(const Cubic& src, double tValues[]);
DExtrema.h7 int findExtrema(double a, double b, double c, double d, double tValues[2]);
DCubicUtilities.cpp306 int find_cubic_inflections(const Cubic& src, double tValues[]) in find_cubic_inflections() argument
314 return quadraticRootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in find_cubic_inflections()
340 int find_cubic_max_curvature(const Cubic& src, double tValues[]) in find_cubic_max_curvature() argument
349 return cubicRootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in find_cubic_max_curvature()
/external/chromium_org/third_party/skia/src/core/
DSkGeometry.cpp452 SkScalar tValues[2]) { in SkFindCubicExtrema()
458 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
510 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
515 SkASSERT(is_unit_interval(tValues[i])); in SkChopCubicAt()
516 SkASSERT(is_unit_interval(tValues[i+1])); in SkChopCubicAt()
517 SkASSERT(tValues[i] < tValues[i+1]); in SkChopCubicAt()
526 SkScalar t = tValues[0]; in SkChopCubicAt()
541 if (!valid_unit_divide(tValues[i+1] - tValues[i], in SkChopCubicAt()
542 SK_Scalar1 - tValues[i], &t)) { in SkChopCubicAt()
587 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local
[all …]
DSkGeometry.h64 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]);
136 SkScalar tValues[2]);
152 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[2]);
160 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]);
162 SkScalar tValues[3] = NULL);
/external/skia/src/core/
DSkGeometry.cpp452 SkScalar tValues[2]) { in SkFindCubicExtrema()
458 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
510 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
515 SkASSERT(is_unit_interval(tValues[i])); in SkChopCubicAt()
516 SkASSERT(is_unit_interval(tValues[i+1])); in SkChopCubicAt()
517 SkASSERT(tValues[i] < tValues[i+1]); in SkChopCubicAt()
526 SkScalar t = tValues[0]; in SkChopCubicAt()
541 if (!valid_unit_divide(tValues[i+1] - tValues[i], in SkChopCubicAt()
542 SK_Scalar1 - tValues[i], &t)) { in SkChopCubicAt()
587 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local
[all …]
DSkGeometry.h64 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]);
136 SkScalar tValues[2]);
152 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[2]);
160 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]);
162 SkScalar tValues[3] = NULL);
/external/skia/tests/
DGeometryTest.cpp28 SkScalar tValues[3]; in testChopCubic() local
30 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()
/external/chromium_org/third_party/skia/tests/
DGeometryTest.cpp28 SkScalar tValues[3]; in testChopCubic() local
30 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()

12