We extend Jordan's notion of principal angles to work for two subspaces of quaternionic space, and so have a method to analyze two orthogonal projections in the matrices over the real, complex or quaternionic field (or skew field). From this we derive an algorithm to turn almost commuting projections into commuting projections that minimizes the sum of the displacements of the two projections. We quickly prove what we need using the universal real C*-algebra generated by two projections.
Loring, Terry A. (2013): Principal angles and approximation for quaternionic projections [dataset]. University of New Mexico. http://hdl.handle.net/1928/23492