public void toAxes(Vector3f axes[]) {
        if (axes.length != 3) {
            throw new IllegalArgumentException(
                    "Axes array must have three elements");
        }

        Matrix3f tempMat = toRotationMatrix();
        axes[0] = tempMat.getColumn(0, axes[0]);
        axes[1] = tempMat.getColumn(1, axes[1]);
        axes[2] = tempMat.getColumn(2, axes[2]);
    }
Converts the quaternion to a rotated coordinate system and stores the
resulting axes in the argument. The current instance is unaffected.

<p>The resulting vectors form the basis of a rotated coordinate system.
They will be normalized, mutually orthogonal, and in right-hand order.

@param axes storage for the results (not null, length=3, each element
    non-null, elements modified)
@throws IllegalArgumentException if {@code axes.length != 3}
jme3-core/src/main/java/com/jme3/math/Quaternion.java