Consider two known points A, and B, an unknown point C. If we know the distances between C and the other two points, we can recover πAB(C), the projection of C onto the line AB.
The distance between πAB(C) and A is
This can be derived using the pythagorean theorem and fact triangles AC\pi(C) and BC\pi(C) share a side.
This can be used to derive an expression for πAB(C) using a weighted sum of A and B: