Hey kedwards.

If all points are on the same line then you wish to solve a simultaneous set of equations to find the value of t.

So the first thing to do is get your parametric form in terms of r = r0 + n*t where n is a normal direction vector (if its not normalized, then normalize it). We normalize this because it aids distance calculations.

If you know the point and the distance from that point along the line then if the distance is d the new point will be z = z0 + d*n with normal n corresponding to the one above and z0 is the point that you know.

So you use the other point information where z = y0 - e*n where y0 is the other point on the line and e is the distance. We use a plus and a minus because of the two directions.

Now you have a simultaneous equation which you can solve for z given this information to get a solution.

When you get a value for d or e plug in and you have a solution.