80 precision = std::max<size_t>(precision, 2);
82 const size_t numCurves =
curves.size();
83 std::vector<float> values(precision * numCurves, 0.0f);
84 const float step = 1.0f /
static_cast<float>(precision - 1);
86 for (
size_t c = 0; c < numCurves; c++) {
87 for (
size_t i = 0; i < precision; i++) {
88 values[i * numCurves + c] =
curves[c].value(step *
static_cast<float>(i));