• Home
  • Raw
  • Download

Lines Matching refs:fWeights

63         fWeights.resize(degree + 1, {0});  in ScalarBezCurve()
70 fWeights.insert(fWeights.begin(), weights.begin(), weights.end()); in ScalarBezCurve()
77 for (float w : fWeights) { in extremumWeight()
97 result.fWeights[i] = result.fWeights[i - 1] * (1 - t) + result.fWeights[i] * t; in Eval()
101 return result.fWeights[curve.fDegree]; in Eval()
128 left->fWeights[0] = curve.fWeights[0]; in Split()
129 right->fWeights[degree] = curve.fWeights[degree]; in Split()
134 result.fWeights[i] = result.fWeights[i - 1] * (1 - t) + result.fWeights[i] * t; in Split()
137 left->fWeights[k] = result.fWeights[k]; in Split()
138 right->fWeights[degree - k] = result.fWeights[degree]; in Split()
153 fWeights = ElevateDegree(*this, newDegree).fWeights; in elevateDegree()
175 elevated.fWeights[i] = 0; in ElevateDegree()
179 elevated.fWeights[i] += curve.fWeights[j] * f; in ElevateDegree()
205 result.fWeights[k] *= f; in Mul()
223 result.fWeights[k] = 0; in Mul()
227 result.fWeights[k] += a.fWeights[i] * b.fWeights[k - i] * f; in Mul()
245 aSq += a.fWeights[i] * a.fWeights[k - i] * f; in AddSquares()
246 bSq += b.fWeights[i] * b.fWeights[k - i] * f; in AddSquares()
248 result.fWeights[k] = aSq + bSq; in AddSquares()
265 fWeights[k] -= other.fWeights[k]; in sub()
272 fWeights[k] -= f; in sub()
280 const std::vector<float>& weights() const { return fWeights; } in weights()
282 float operator[](size_t i) const { return fWeights[i]; } in operator []()
283 float& operator[](size_t i) { return fWeights[i]; } in operator []()
293 bool allPos = curve.fWeights[0] >= 0, allNeg = curve.fWeights[0] < 0; in ZeroSetRec()
295 lenP += std::abs(curve.fWeights[i] - curve.fWeights[i - 1]); in ZeroSetRec()
296 allPos &= curve.fWeights[i] >= 0; in ZeroSetRec()
297 allNeg &= curve.fWeights[i] < 0; in ZeroSetRec()
319 std::vector<float> fWeights; member in __anondd06c43e0111::ScalarBezCurve
1064 std::vector<float> fWeights; member
1070 fWeights.resize(degree + 1, 1.0f); in DistFncMenuItem()
1147 return ScalarBezCurve::Mul(ScalarBezCurve(df.fDegree, df.fWeights), radius); in makeDistFnc()
1339 ImGui::SliderFloat(label.c_str(), &(df.fWeights[i]), 0, 1); in drawUI()