How to find out position of a point, given a vector, projection on the vector, and angle.

128 Views Asked by At

I need to find the position of a point q given a vector $\vec{se}$, projection of q on $\vec{se}$, and angle $\theta$ between $\vec{se}$ and $\vec{eq}$.

enter image description here

Known are s(s1, s2, s3), e(e1, e2, e3), p(p1, p2, p3), and theta. Is there a way to find out q(q1, q2, q3), such that $ep$ is projection of $\vec{eq}$?

We know:

  1. $\vec{se}.\vec{pq} = 0$
  2. $|\vec{eq}|cos(\theta) = |\vec{ep}|$

However, we need another equation to solve for q(q1, q2, q3). Is there some way to deal with this?

Additional Info: I am trying to generate an arrow head around $e$, given s(s1, s2, s3), and e(e1, e2, e3). As a newbie I thought this step by step approach will be easy, and now I am stuck here.