A square matrix with real numbers or elements is orthogonal if its transpose is equal to its inverse:

or

Geometric Meaning

For any two vectors, , their dot product after applying an orthogonal matrix is:

So, the dot product is preserved; is is the same whether you apply the matrix or not.