/external/skia/src/pathops/ |
D | SkPathOpsRect.cpp | 16 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 …]
|
D | SkPathOpsCubic.h | 66 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;
|
D | SkPathOpsConic.cpp | 36 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()
|
D | SkPathOpsAsWinding.cpp | 145 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()
|
D | SkPathOpsCubic.cpp | 517 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()
|
/external/skqp/src/pathops/ |
D | SkPathOpsRect.cpp | 16 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 …]
|
D | SkPathOpsCubic.h | 66 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;
|
D | SkPathOpsConic.cpp | 36 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()
|
D | SkPathOpsAsWinding.cpp | 144 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()
|
D | SkPathOpsCubic.cpp | 515 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()
|
/external/skqp/src/core/ |
D | SkGeometry.cpp | 369 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 …]
|
D | SkGeometry.h | 62 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);
|
D | SkStroke.cpp | 618 SkScalar tValues[3]; in CheckCubicLinear() local 619 int count = SkFindCubicMaxCurvature(cubic, tValues); in CheckCubicLinear() 623 SkScalar t = tValues[index]; in CheckCubicLinear() 1278 SkScalar tValues[2]; in cubicTo() local 1279 int count = SkFindCubicInflections(cubic, tValues); in cubicTo() 1282 SkScalar nextT = index < count ? tValues[index] : 1; in cubicTo()
|
D | SkScan_Hairline.cpp | 424 SkScalar tValues[3]; in haircubic() local 426 int count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in haircubic()
|
/external/skia/src/core/ |
D | SkGeometry.cpp | 435 SkScalar tValues[2]) { in SkFindCubicExtrema() 441 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema() 525 const SkScalar tValues[], int tCount) { in SkChopCubicAt() argument 531 SkASSERT(lastT <= tValues[i] && tValues[i] <= 1); in SkChopCubicAt() 532 lastT = tValues[i]; in SkChopCubicAt() 543 float2 tt = float2::Load(tValues + i); in SkChopCubicAt() 545 float lastT = tValues[i - 1]; in SkChopCubicAt() 554 float t = tValues[i]; in SkChopCubicAt() 556 float lastT = tValues[i - 1]; in SkChopCubicAt() 689 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local [all …]
|
D | SkGeometry.h | 95 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);
|
D | SkStroke.cpp | 652 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()
|
D | SkScan_Hairline.cpp | 433 SkScalar tValues[3]; in haircubic() local 435 int count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in haircubic()
|
/external/skqp/tests/ |
D | GeometryTest.cpp | 33 SkScalar tValues[3]; in testChopCubic() local 35 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()
|
/external/skia/tests/ |
D | GeometryTest.cpp | 33 SkScalar tValues[3]; in testChopCubic() local 35 int count = SkChopCubicAtMaxCurvature(src, dst, tValues); in testChopCubic()
|