Lines Matching defs:min_x
435 int min_x, max_x, start_index, end_index;
437 min_x = (int)floor(inter_x[0]);
442 min_x = (int)floor(inter_x[1]);
448 int start_x = std::max(min_x, 0);
455 float r_unit = (r[end_index] - r[start_index]) / (max_x - min_x);
456 float g_unit = (g[end_index] - g[start_index]) / (max_x - min_x);
457 float b_unit = (b[end_index] - b[start_index]) / (max_x - min_x);
458 float R = r[start_index] + (start_x - min_x) * r_unit;
459 float G = g[start_index] + (start_x - min_x) * g_unit;
460 float B = b[start_index] + (start_x - min_x) * b_unit;