Lines Matching defs:distance
78 // Compute the distance to the first cluster center
84 float distance = dot_s(diff * diff, blk.channel_weight);
85 distance_sum += distance;
86 distances[i] = distance;
123 // Compute the distance to the new cluster center, keep the min dist
129 float distance = dot_s(diff * diff, blk.channel_weight);
130 distance = astc::min(distance, distances[i]);
131 distance_sum += distance;
132 distances[i] = distance;
168 float distance = dot_s(diff * diff, blk.channel_weight);
169 if (distance < best_distance)
171 best_distance = distance;