Permuting Frame Axes

Once a FrameFrame has been created, it is not possible to change the number of axes it contains, but it is possible to change the order in which these axes occur. To do so, an integer permutation array is filled with the numbers of the axes so as to specify the new order, e.g.:


\begin{terminalv}
int perm[ 2 ] = { 2, 1 };
\end{terminalv}

In this case, the axes of a 2-dimensional Frame could be interchanged by passing this permutation array to the astPermAxesastPermAxes function. That is, an ($x_1,x_2$) coordinate system would be changed into an ($x_2,x_1$) coordinate system by:


\begin{terminalv}
astPermAxes( frame, perm );
\end{terminalv}

If the axes are permuted more than once, the effects are cumulative. You are, of course, not restricted to Frames with only two axes.