I am trying to find an equation for a camera projection. The goal is to map the point $P(P_x, P_y, P_z)$ from the world coordinates onto the window coordinates $Q(Q_x, Q_y)$.
The eye of viewing is located a distance D from the $\hat{e_1}$-$\hat{e_2}$ plane, and in the direction of -$\hat{e_3}$. $\hat{e_1}$, $\hat{e_2}$ and $\hat{e_3}$ are unit vectors.
What is the equation to map P from world coordinates to window coordinates? $\vec{Q}(Q_x, Q_y) = f(\vec{P}, \hat{e_1}, \hat{e_2}, \hat{e_3}, \vec{v}, \vec{c})$ with all the vectors on the right side described in terms of world coordinates, eg
$\vec{P} = (P_x, P_y, P_z)$
$\vec{C} = (C_x, C_y, C_z)$
$\vec{e_1} = ({e_1}_x, {e_1}_y, {e_1}_z)$
$\vec{e_2} = ({e_2}_x, {e_2}_y, {e_2}_z)$
$\vec{e_3} = ({e_3}_x, {e_3}_y, {e_3}_z)$