Damon,
You better brush up on your 3D geometry. It requires at most 3 rotations to relate any arbitrary rotating frame of reference back to the global frame. And the answer is yes, the 8700 can provide the data to do the computation. This is essentially the "tilt compensated compass" algorithm found in the Sensor Fusion Toolbox (nxp.com/sensorfusion). In addition to a compass heading, that (and other algorithms in the sensor fusion library) returns orientation in both quaternion and rotation matrix form.
Regards,
Mike