Let's say I have a line defined by two points,
B, both in the form
(x, y, z). These points represent a line in 3D space.
I also have a point
P, defined in the same format, that isn't on the line.
How would I calculate the projection of that point on to the line? I'm aware of how to do this in 2D but 3D seems to have bugger all resources on it.