I am trying to create a simple animation of a bottle that is lying on X-Y plane, that spins around z-axis, where X axis and Y axis are perpendicular to each other, and along the plane of your monitor, while Z - axis is the line coming out of the monitor towards you, and perpendicular to the surface of the monitor.
What I am trying to do is, create a simple animated image which shows such a spinning bottle.
How do I represent such a 3-d motion in an image? Which math equations apply to such rotation?
And in this example, the bottle is lying on X-Y plane, but what if it is not exactly along X-Y plane, but 'tilted' in such fashion? How should I represent such rotation?
This highly depends on what software you are using to implement this. In general a rotation is most often represented in the form of a matrix though. Rotation around z axis by an angle $\phi$ is $$ \begin{bmatrix}x'\\y'\\z'\end{bmatrix} = \begin{bmatrix}\cos(\phi) & -\sin(\phi) & 0\\ \sin(\phi) & \cos(\phi) & 0\\ 0 & 0 & 1\end{bmatrix} \cdot \begin{bmatrix}x\\y\\z\end{bmatrix}$$
This works for any object, no matter whether it is tilted or exactly in the x-y-plane. If you want other rotations around arbitrary axes or don't want to rotate around an axis through the origin just search the web for general rotation matrices...