We refine a method introduced in [1] and [2] for studying the number of distinct values taken by certain polynomials of two real variables on Cartesian products. We apply it to prove a "gap theorem", improving a recent lower bound on the number of distinct distances between two collinear point sets in the Euclidean space.