R_GetPortalOrientations in F#. (not tested)