# Rotate a cube along the $y,\, x$ and $z$-plane.

I am trying to construct a few shapes and figures in Geogebra.

One of the things I am trying to create is a cube with sides $b$, that can be rotated along any axis. I was thinking about making $4$ sliders. One for the sidelengths, and then three sliders for the angles.

My problem is that obviously Geogebra is in $2D$ an a cube is in $3D$. (I will not try to use Geogebra $5$)

From what little mathematical knowledge I have, it seems I need to use linear algebra to solve this problem. Eg: a Linear transformation from $\mathbb{R}^3 \to \mathbb{R}^2$ .

If I want to translate the cube along oh lets say the bottom left corner. What would the coordinates for the other points be ? Assuming the cube has sidelengths $a$.

I am in a tad of hurry now, but will come back later. I do not know how to imitate this effect in $2D$.

If anyone can help that would be fantastic.

-
Stuff here might be of use –  Ｊ. Ｍ. Mar 24 '12 at 10:18
You many be able to use a rotational matrix on the cube in 3-space, then plot the shape without the z-coordinate. –  Ben Mar 24 '12 at 12:23