The barycenter is the center of mass of 2 or more points. euclid supports calculating the barycenter of up to 4 weighted points. If the weights are the same between the points the barycenter corresponds to the centroid (or midpoint in the case of two points).
barycenter(x, y, z = NULL, t = NULL)
vectors of weighted points.
A point vector