Let one of the points be P(x, y, z).
A (1, 2, 3) and B (3, 2, -1) are two given points
Now,
Using distance formula, we have
Hence, the equation of set of points P (or the locus) is x - 2z = 0