Function trk_io::orientation::axcodes_to_orientations
source · [−]pub fn axcodes_to_orientations(axcodes: &str) -> Orientations
Expand description
Convert axis codes axcodes
to an orientation
The “identity” orientation is RAS. Thus, calling this function with “RAS” would return
[(0, Direction::Normal), (1, Direction::Normal), (2, Direction::Normal)]
If the caller has a different default orientation, like LAS, he must reverse the Direction
of
the 0
axis.