I have a square in the x-z plane (red square in the diagram attached).
I first rotate around the x axis by angle A (to the green square in the diagram).
I then rotate around its perpendicular at point (1, 0, 0) by angle B (to blue square in the diagram).
I would now like to rotate the blue square around its edge that started out on the x-axis (highlighted in white) until the corner that started out at (1, 0, 1) is in the x-z plane (i.e. the corner with the ball is at y = 0). Can anyone tell me what the angle of rotation is?