So the rotation matrix for 2D is:
\begin{bmatrix} \cos(\theta) & \sin(\theta) \\ -\sin(\theta) & \cos(\theta) \end{bmatrix}
and one of three BASIC rotation matrices for 3D is:
\begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos(\theta) & \sin(\theta) \\ 0 & -\sin(\theta) & \cos(\theta) \end{bmatrix}
but what is the general form of a rotation matrix for $N>3$ dimensions?
Assuming the pattern stays the same, on of the possible $n$-rotation matrices for an $N$-dimensional rotation matrix could be: \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & \cos(\theta) & \sin(\theta) \\ 0 & 0 & -\sin(\theta) & \cos(\theta) \end{bmatrix}
Does this even seem right? I need to be able to rotate any possible $N$-by-$N$ matrix by the $N$-dim. rotation matrix through any angle.
The distance preserving linear maps $T:\mathbb R^n\to \mathbb R^n$ are precisely the ones which satisfy $T^*T=I$. It would be appropriate to call distance preserving linear maps as 'rotations.' If one wants to further preserve orientation then one would in addition demand $\det(T) > 0$ (note that this forces $\det(T) = 1$).
In matrix language, an $n\times n$ real matrix $M$ is a rotation matrix if $M^tM=I$, where $M^t$ is the transpose of $M$.