In 3d space, is there any way to project a vector onto a plane, but along the UP direction (0,1,0) instead of the plane normal? If so, how do I do that and what is it called?
Maribel Mcintyre
Answered question
2022-10-28
In 3d space, is there any way to project a vector onto a plane, but along the UP direction (0,1,0) instead of the plane normal? If so, how do I do that and what is it called?
Answer & Explanation
canhaulatlt
Beginner2022-10-29Added 17 answers
If I understand you correctly, you want to take an arbitrary vector and decompose it as where lies in some plane with normal (i.e., ), and is a known vector, not necessarily equal to Since by assumption we have and , taking the dot product of both sides with yields
This then implies that the desired vector will be
Note that in the case where , this reduces to the standard orthogonal projection equation. Note also that in the case where , this equation doesn't make any sense; this corresponds to the case where you're projecting along an axis lying parallel to the chosen plane, and so the desired vector will not exist unless already lies in that plane.
omgespit9q
Beginner2022-10-30Added 3 answers
A picture would help, but this is what I think you are asking. Given the plane and the point , you want to move the point in the direction until it meets the plane. Well that move will change only the value of q, To find the new value, solve
for the value of ? There will be no solution if (0,1,0) is parallel to the plane (unless the point is in the plane to begin with).In more generality, you are asking for the intersection of a line (through a given point in a given direction) with a plane.