Home
last modified time | relevance | path

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

/external/skia/src/pathops/
DSkPathOpsRect.cpp16 double tValues[2]; in setBounds() local
19 roots = SkDQuad::FindExtrema(&sub[0].fX, tValues); in setBounds()
22 roots += SkDQuad::FindExtrema(&sub[0].fY, &tValues[roots]); in setBounds()
25 double t = startT + (endT - startT) * tValues[index]; in setBounds()
33 double tValues[2]; in setBounds() local
36 roots = SkDConic::FindExtrema(&sub[0].fX, sub.fWeight, tValues); in setBounds()
39 roots += SkDConic::FindExtrema(&sub[0].fY, sub.fWeight, &tValues[roots]); in setBounds()
42 double t = startT + (endT - startT) * tValues[index]; in setBounds()
50 double tValues[4]; in setBounds() local
53 roots = SkDCubic::FindExtrema(&sub[0].fX, tValues); in setBounds()
[all …]
DSkPathOpsCubic.h67 int findInflections(double tValues[2]) const;
69 static int FindInflections(const SkPoint a[kPointCount], double tValues[2]) { in FindInflections()
71 return cubic.set(a).findInflections(tValues); in FindInflections()
74 int findMaxCurvature(double tValues[]) const;
DSkPathOpsConic.cpp35 double tValues[2]; in FindExtrema() local
36 int roots = SkDQuad::RootsValidT(coeff[0], coeff[1], coeff[2], tValues); in FindExtrema()
40 t[0] = tValues[0]; in FindExtrema()
DSkPathOpsCubic.cpp491 int SkDCubic::findInflections(double tValues[]) const { in findInflections()
498 return SkDQuad::RootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in findInflections()
517 int SkDCubic::FindExtrema(const double src[], double tValues[2]) { in FindExtrema()
527 return SkDQuad::RootsValidT(A, B, C, tValues); in FindExtrema()
542 int SkDCubic::findMaxCurvature(double tValues[]) const { in findMaxCurvature()
550 return RootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in findMaxCurvature()
/external/skia/src/core/
DSkGeometry.cpp384 SkScalar tValues[2]) { in SkFindCubicExtrema()
390 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
442 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
447 SkASSERT(is_unit_interval(tValues[i])); in SkChopCubicAt()
448 SkASSERT(is_unit_interval(tValues[i+1])); in SkChopCubicAt()
449 SkASSERT(tValues[i] < tValues[i+1]); in SkChopCubicAt()
458 SkScalar t = tValues[0]; in SkChopCubicAt()
473 if (!valid_unit_divide(tValues[i+1] - tValues[i], in SkChopCubicAt()
474 SK_Scalar1 - tValues[i], &t)) { in SkChopCubicAt()
501 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local
[all …]
DSkGeometry.h62 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]);
130 SkScalar tValues[2]);
146 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[2]);
154 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]);
156 SkScalar tValues[3] = nullptr);
DSkStroke.cpp592 SkScalar tValues[3]; in CheckCubicLinear() local
593 int count = SkFindCubicMaxCurvature(cubic, tValues); in CheckCubicLinear()
598 SkScalar t = tValues[index]; in CheckCubicLinear()
1250 SkScalar tValues[2]; in cubicTo() local
1251 int count = SkFindCubicInflections(cubic, tValues); in cubicTo()
1254 SkScalar nextT = index < count ? tValues[index] : 1; in cubicTo()
DSkScan_Hairline.cpp386 SkScalar tValues[3]; in haircubic() local
388 int count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in haircubic()
/external/skia/tests/
DGeometryTest.cpp29 SkScalar tValues[3]; in testChopCubic() local
31 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()