- #1
pjhphysics
- 16
- 0
Hi,
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
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