I have the following problem:
In order to extract features from human joint based 3D data I only consider the angles of the resulting bones (e.g., vector given by shoulder left joint to elbow left joint) with respect to the $y$- and $z$-axes. Consequently $\angle Y$ is the angle that the vector $v$ makes with the $y$-axis and $\angle Z$ the analogous angle between $v$ and the z$-axis.
Computing the angles is trivial because we have the formula $$ \cos A = \frac{v_1 \cdot v_2}{|v_1||v_2|} . $$
My problem arises when I want to do the computation backwards, which means that the angles are given. Since I also know the respected axes, I have to find out what my original vector $v$ was.
Up to now I have tried to do it with rotation matrices which failed since I was not able to determine the correct vector.
Do you have any idea which steps are required to compute the vector $v$?