Home
last modified time | relevance | path

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

/third_party/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.h66 int findInflections(double tValues[2]) const;
68 static int FindInflections(const SkPoint a[kPointCount], double tValues[2]) { in FindInflections()
70 return cubic.set(a).findInflections(tValues); in FindInflections()
73 int findMaxCurvature(double tValues[]) const;
DSkPathOpsConic.cpp36 double tValues[2]; in FindExtrema() local
37 int roots = SkDQuad::RootsValidT(coeff[0], coeff[1], coeff[2], tValues); in FindExtrema()
44 t[0] = tValues[0]; in FindExtrema()
DSkPathOpsAsWinding.cpp145 double tValues[2]; in left_edge() local
146 roots = SkDCubic::FindExtrema(&cubic[0].fX, tValues); in left_edge()
149 SkPoint temp = cubic.ptAtT(tValues[index]).asSkPoint(); in left_edge()
152 t = tValues[index]; in left_edge()
DSkPathOpsCubic.cpp517 int SkDCubic::findInflections(double tValues[]) const { in findInflections()
524 return SkDQuad::RootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in findInflections()
543 int SkDCubic::FindExtrema(const double src[], double tValues[2]) { in FindExtrema()
553 return SkDQuad::RootsValidT(A, B, C, tValues); in FindExtrema()
568 int SkDCubic::findMaxCurvature(double tValues[]) const { in findMaxCurvature()
576 return RootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in findMaxCurvature()
/third_party/flutter/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.h66 int findInflections(double tValues[2]) const;
68 static int FindInflections(const SkPoint a[kPointCount], double tValues[2]) { in FindInflections()
70 return cubic.set(a).findInflections(tValues); in FindInflections()
73 int findMaxCurvature(double tValues[]) const;
DSkPathOpsConic.cpp36 double tValues[2]; in FindExtrema() local
37 int roots = SkDQuad::RootsValidT(coeff[0], coeff[1], coeff[2], tValues); in FindExtrema()
44 t[0] = tValues[0]; in FindExtrema()
DSkPathOpsAsWinding.cpp144 double tValues[2]; in left_edge() local
145 roots = SkDCubic::FindExtrema(&cubic[0].fX, tValues); in left_edge()
148 SkPoint temp = cubic.ptAtT(tValues[index]).asSkPoint(); in left_edge()
151 t = tValues[index]; in left_edge()
DSkPathOpsCubic.cpp515 int SkDCubic::findInflections(double tValues[]) const { in findInflections()
522 return SkDQuad::RootsValidT(Bx * Cy - By * Cx, Ax * Cy - Ay * Cx, Ax * By - Ay * Bx, tValues); in findInflections()
541 int SkDCubic::FindExtrema(const double src[], double tValues[2]) { in FindExtrema()
551 return SkDQuad::RootsValidT(A, B, C, tValues); in FindExtrema()
566 int SkDCubic::findMaxCurvature(double tValues[]) const { in findMaxCurvature()
574 return RootsValidT(coeffX[0], coeffX[1], coeffX[2], coeffX[3], tValues); in findMaxCurvature()
/third_party/flutter/skia/src/core/
DSkGeometry.cpp369 SkScalar tValues[2]) { in SkFindCubicExtrema()
375 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
427 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
432 SkASSERT(0 < tValues[i] && tValues[i] < 1); in SkChopCubicAt()
433 SkASSERT(0 < tValues[i+1] && tValues[i+1] < 1); in SkChopCubicAt()
434 SkASSERT(tValues[i] < tValues[i+1]); in SkChopCubicAt()
443 SkScalar t = tValues[0]; in SkChopCubicAt()
458 if (!valid_unit_divide(tValues[i+1] - tValues[i], in SkChopCubicAt()
459 SK_Scalar1 - tValues[i], &t)) { in SkChopCubicAt()
486 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.cpp619 SkScalar tValues[3]; in CheckCubicLinear() local
620 int count = SkFindCubicMaxCurvature(cubic, tValues); in CheckCubicLinear()
624 SkScalar t = tValues[index]; in CheckCubicLinear()
1274 SkScalar tValues[2]; in cubicTo() local
1275 int count = SkFindCubicInflections(cubic, tValues); in cubicTo()
1278 SkScalar nextT = index < count ? tValues[index] : 1; in cubicTo()
DSkScan_Hairline.cpp424 SkScalar tValues[3]; in haircubic() local
426 int count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in haircubic()
/third_party/skia/src/core/
DSkGeometry.cpp436 SkScalar tValues[2]) { in SkFindCubicExtrema()
442 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
526 const SkScalar tValues[], int tCount) { in SkChopCubicAt() argument
529 SkASSERT(std::all_of(tValues, tValues + tCount, [](SkScalar t) { return t >= 0 && t <= 1; })); in SkChopCubicAt()
530 SkASSERT(std::is_sorted(tValues, tValues + tCount)); in SkChopCubicAt()
539 float2 tt = float2::Load(tValues + i); in SkChopCubicAt()
541 float lastT = tValues[i - 1]; in SkChopCubicAt()
550 float t = tValues[i]; in SkChopCubicAt()
552 float lastT = tValues[i - 1]; in SkChopCubicAt()
685 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local
[all …]
DSkGeometry.h95 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]);
201 SkScalar tValues[2]);
217 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[2]);
225 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]);
227 SkScalar tValues[3] = nullptr);
DSkStroke.cpp652 SkScalar tValues[3]; in CheckCubicLinear() local
653 int count = SkFindCubicMaxCurvature(cubic, tValues); in CheckCubicLinear()
657 SkScalar t = tValues[index]; in CheckCubicLinear()
1314 SkScalar tValues[2]; in cubicTo() local
1315 int count = SkFindCubicInflections(cubic, tValues); in cubicTo()
1318 SkScalar nextT = index < count ? tValues[index] : 1; in cubicTo()
DSkScan_Hairline.cpp433 SkScalar tValues[3]; in haircubic() local
435 int count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in haircubic()
/third_party/flutter/skia/tests/
DGeometryTest.cpp33 SkScalar tValues[3]; in testChopCubic() local
35 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()
/third_party/skia/tests/
DGeometryTest.cpp33 SkScalar tValues[3]; in testChopCubic() local
35 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()