that is if you need to do a transformation. X x Y x Z can be done in one step and then transform, any vector you multiply with the result will be rotated in respect to the transformation.