I've been stuck on this problem for more time than I'd like to admit, and I feel like I'm overcomplicating the solution, or just not understanding the concept.
I have a projectile in motion in three-dimensional space that starts at some initial point $\vec{r_i}$ and impacts a surface at point $\vec{r_f}$. I have the initial velocity on all axes as ${v_i}$, I have the gravity as scalar ${g}$ and I also have the vector opposite the direction of gravity, which I'll call $\vec{u}$. Multiplying ${g}$ and $\vec{u}$ gives me the gravitational acceleration vector $\vec{a}$.
Typically, it's assumed that $\vec{u} = (0, 1, 0)$, so vertical displacement could be acquired by $\Delta{y} = {r_f}_y - {r_i}_y$ or as $\Delta{y} = \frac{1}{2}{g}{t^2}$ if you have time, which I don't.
In some instances during this problem, $\vec{u}$ is represented as a normalized vector that is not equivalent to the y-axis vector $(0, 1, 0)$.
Given that, how can I find vertical displacement in along $\vec{u}$ instead of the assumed y-axis vector $(0, 1, 0)$?