Hi,(adsbygoogle = window.adsbygoogle || []).push({});

Let's say I have two points:

Pa = (0, 0, -30)

Pb = (-2.5, -2.5, 7.5)

and I want to find the X and Y values for a third point on this line whose Z value is 30:

Pc = (X, Y, 30)

How can I achieve this? My math is not very great and I'm applying this to a computer program. So if possible, a straightforward, programmable format would be so great!

Thanks

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# A Line in Three Dimensions

**Physics Forums | Science Articles, Homework Help, Discussion**