If you're given a 3-d cube centered at the origin, i.e. the center of the cube is at $(0,0,0)$. If you rotate the cube in $x$, $y$, and $z$ direction, then how can you find the area of its orthogonal projection. For example, if you don't rotate the cube at all, then the area is just $1$. However, say you rotate the cube $45^\circ$ along the line $x=y=0$, then the area comes out to $\sqrt{2}\cdot 1 = \sqrt{2}$. Is there a general formula for this where you're given some rotation and you have to find the orthogonal projected area? What about the other way, i.e. if you're given the area, can you find the coordinates of the cube (more interested in this case)?
I think this may be related to my question: Width of a tilted cube But, instead of width, I'm working with area.


If you consider a rotation in the same axis as one of the faces (I'm not sure how to word this well), so that the projection is always a rectangle (NOT a hexagon), then the projection's area will be
w*d. Wherewis the width of the cube anddis the orthogonal projection of the diagonal across the tilted face. For a unit-cube, this can be written nicely as$$ A = \sqrt2cos(\theta) $$
You can use matrix transformations to find coordinates of the cube using your angle.
PS: this will only help for test set 1 of the codejam problem