[Reference] Projection of point onto line using distance from two reference points

January 09, 2015

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

d(A,πAB(C))=d(A,B)(1+g)/2, whereg=(d(A,C)2d(B,C)2)/d(A,B)2

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:

πAB(C)=(A(1g)+B(1+g))/2
Posted by Kyle Simek