matrixCalculations now can switch to/from relative coordinate frames