Given two three dimensional points. find the z coordinate of a third point that has two known coordinates. I'm not entirely sure how to solve this system. I'll be implementing this into an algorithm so any additional pointers in that direction would be appreciated.
Example 1:
Point 1 = (1,1,5);
Point 2 = (2,2,10);
------------------
Point 3 = (3,3,?);
Example 2:
Point 1 = (2,6,5);
Point 2 = (4,40,10);
------------------
Point 3 = (3,23,?);
Example 3:
Point 1 = (0,6,5);
Point 2 = (0,40,10);
------------------
Point 3 = (0,20,?);
Ah, forgot to mention that these two points (and the subsequent third point) are on a line. I can also extend the sample size from 2 to N before runtime (where, in the above example, the 3rd point, is calculated).