Intersecting a plane

No.14296003 ViewReplyOriginalReport
Let me start by saying this isn't homework, the problem relates to me trying to position a camera for a game I'm working on. I've narrowed down the actual math involved as best I can to make it solvable.

a point P exists along a vector M starting at O, a plane intersects P with a normal vector of N.

What is the position of P such that the plane intersects another point Q.

For the purposes of this problem you can think of O as being the origin and that both Q, M and N are known.

For context P would be the position of the camera and the plane would be a side of the view frustum while O would be the focus of the camera, M would be the direction of the camera from O, Q would be some point I'm trying to fit within the view frustum.

I don't know if there's a better way of presenting this problem, any help would be greatly appreciated as I'm currently at my wits end.