How to get an orientation matrix with XDS