I have a vector, which I rotated with respect to $x$, $y$ and $z$ axes, respectively.
Now I want to recover this operation, that means I want to bring it to the previous position by rotating it with $-\theta$, $-\alpha$ and $-\beta$, where $\theta$, $\alpha$ and $\beta$ are the amounts of initial rotation, in radians/degrees.
I tried to do it by computing the dot product of this vector with axis vectors ($(1,0,0)$ for $x$-axis, $(0,1,0)$ for $y$-axis and $(0,0,1)$ for $z$-axis).
However, this did not produce the right result possibly because It was rotated in 3d, thus the dot product was resulting in a different value that it should be.
What I should do in order to perform this operation? Thanks.