title: Translate 3D points along arbitrary plane
body: <p>I'm working with 3D PDB coordinates. I first use numpy.linalg.lstsq to solve the least squares equation, essentially giving me the coefficients of the plane (I think). I can view the plane using matplotlib, and it appears to be correct. I would like to be able to translate my 3D coordinates along the plane given by the least squares solution. For example, I would like to be able to translate points in the (X,Y) of the new plane. Would it be easier to rotate the points to be in the plane where (0,0,1) is the normal? <a href="https://i.stack.imgur.com/jbs5a.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jbs5a.jpg" alt="My poor illustration of what I&#39;m trying to accomplish"></a></p>