A line $OP$ is inclined at $45^o$ to the $x$-axis and $120^o$ to the $y$-axis. Find its inclination to the $z$-axis.
I think the inclination to the $y$-axis does not affect inclination to the $z$-axis, so the answer is $45^o$. However, I don't know how to use dot product to do calculation.