Equation of a line maintaining equal ratio distance between two points.

Solution 1:

As DanielFischer said, the locus is a circle if the ratio isn't $1:1$. This is known as Apollonius' Circle Theorem.