Function toRotationMatrixUsingWanderAzimuth