I obtain a 3×3 matrix corresponding to a general rotation in 3D space via some program. However, let's say that for some reason the third row in the matrix is damaged and filled with zeroes, which of course makes the matrix incorrect. I simply cannot fix the process obtaining this matrix, therefore I need to reconstruct the third row based on the first two rows and the fact that it is a rotation. Is it possible? If so, what is the formula for the values?
If not, I am also able to obtain the Euler angle around the Z axis (yaw) for this exact same rotation. Would it then be possible to reconstruct the third row?
I suppose a description of the Euler rotation system and the rotation order may be required for determining the correct formula; please see this question and mainly the answer for the description.