I'm trying to find a way of converting a point relative to the world into a point relative to an arbitrary plane (and a way to convert back). This will be coded into C++ so I'll have to able to write functions for your answers $:)$
In 3d-space, my plane defined by $ax + by + cz + d = 0$, where $(a,b,c)$ is a normalised vector, and my world point is $P(x_p,\ y_p,\ z_p)$. I'd like to find a way to convert the 'world point' from the World plane which has centre $(0, 0, 0)$ and normal $(0, 1, 0)$, into a 'local point' relative to my plane having centre $(x_c,\ y_c,\ z_c)$ and normal $(a, b, c)$.
I attempted to discern this function myself, and I came up with calculating the distance from the origin to the world point and the direction from origin to world point. From that, I could then position the point that distance away along the line formed by combining the plane normal and the line direction. Unfortunately, that's where I got stuck as I couldn't work out a suitable operation.
(NB: my mathematics level is probably rather rudimentary compared to the average on here - while I have a relatively firm grasp on vectors I don't have much experience or confidence with matrices, which I unfortunately suspect may be involved in the answer)
Edit: Having read through your comments and answers and thinking about what I mean I've come to the conclusion that I'm not even sure of the question myself. There's at least two different interpretations I've confused myself with in the last 10 minutes... I think perhaps the best way forward is for me to completely rethink what I'm trying to do and not post questions late into the night. Thank you for your help, anyway :)