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.h65 int findInflections(double tValues[2]) const;
67 static int FindInflections(const SkPoint a[kPointCount], double tValues[2]) { in FindInflections()
69 return cubic.set(a).findInflections(tValues); in FindInflections()
72 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()
43 t[0] = tValues[0]; in FindExtrema()
DSkPathOpsCubic.cpp518 int SkDCubic::findInflections(double tValues[]) const { in findInflections()
525 return SkDQuad::RootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in findInflections()
544 int SkDCubic::FindExtrema(const double src[], double tValues[2]) { in FindExtrema()
554 return SkDQuad::RootsValidT(A, B, C, tValues); in FindExtrema()
569 int SkDCubic::findMaxCurvature(double tValues[]) const { in findMaxCurvature()
577 return RootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in findMaxCurvature()
/external/skia/src/core/
DSkGeometry.cpp347 SkScalar tValues[2]) { in SkFindCubicExtrema()
353 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
405 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
410 SkASSERT(is_unit_interval(tValues[i])); in SkChopCubicAt()
411 SkASSERT(is_unit_interval(tValues[i+1])); in SkChopCubicAt()
412 SkASSERT(tValues[i] < tValues[i+1]); in SkChopCubicAt()
421 SkScalar t = tValues[0]; in SkChopCubicAt()
436 if (!valid_unit_divide(tValues[i+1] - tValues[i], in SkChopCubicAt()
437 SK_Scalar1 - tValues[i], &t)) { in SkChopCubicAt()
464 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.cpp606 SkScalar tValues[3]; in CheckCubicLinear() local
607 int count = SkFindCubicMaxCurvature(cubic, tValues); in CheckCubicLinear()
614 SkScalar t = tValues[index]; in CheckCubicLinear()
1265 SkScalar tValues[2]; in cubicTo() local
1266 int count = SkFindCubicInflections(cubic, tValues); in cubicTo()
1269 SkScalar nextT = index < count ? tValues[index] : 1; in cubicTo()
DSkScan_Hairline.cpp397 SkScalar tValues[3]; in haircubic() local
399 int count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in haircubic()
/external/skia/tests/
DGeometryTest.cpp30 SkScalar tValues[3]; in testChopCubic() local
32 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()