The calculation of the rotation matrix was for left-handed coordinates with row-vectors, but assimp uses right-handed coordinates and column-vectors.