Lines Matching refs:degree
61 explicit ScalarBezCurve(int degree) : fDegree(degree) { in ScalarBezCurve() argument
62 SkASSERT(degree >= 0); in ScalarBezCurve()
63 fWeights.resize(degree + 1, {0}); in ScalarBezCurve()
67 ScalarBezCurve(int degree, const std::vector<float>& weights) : ScalarBezCurve(degree) { in ScalarBezCurve() argument
68 SkASSERT(degree >= 0); in ScalarBezCurve()
69 SkASSERT(weights.size() == (size_t)degree + 1); in ScalarBezCurve()
124 const int degree = curve.fDegree; in Split() local
126 *left = ScalarBezCurve(degree); in Split()
127 *right = ScalarBezCurve(degree); in Split()
129 right->fWeights[degree] = curve.fWeights[degree]; in Split()
131 for (int k = 1; k <= degree; k++) { in Split()
133 for (int i = degree; i >= k; i--) { in Split()
138 right->fWeights[degree - k] = result.fWeights[degree]; in Split()
164 SkASSERT(newDegree >= curve.degree()); in ElevateDegree()
165 if (newDegree == curve.degree()) { in ElevateDegree()
218 const int n = a.degree(), m = b.degree(); in Mul()
236 const int n = a.degree(), m = b.degree(); in AddSquares()
277 int degree() const { return fDegree; } in degree() function in __anonadcc7fe80111::ScalarBezCurve
686 const int deltaDegree = std::max(quadApproxX.degree(), item.fSegX.degree()); in strokeSegment()
700 const int commonDeg = std::max(distFncSqd.degree(), E.degree()); in strokeSegment()
904 const int degree = segmentDegree(seg); in splitSegment() local
905 ScalarBezCurve x(degree), y(degree); in splitSegment()
906 for (int i = 0; i <= degree; i++) { in splitSegment()
911 ScalarBezCurve leftX(degree), rightX(degree), leftY(degree), rightY(degree); in splitSegment()
916 for (int i = 0; i <= degree; i++) { in splitSegment()
1066 DistFncMenuItem(const std::string& name, int degree, bool selected) { in DistFncMenuItem()
1068 fDegree = degree; in DistFncMenuItem()
1070 fWeights.resize(degree + 1, 1.0f); in DistFncMenuItem()
1258 const int deg = E.degree(); in drawErrorCurve()