@_factories.addApiDocs( _api.MFnTransform, 'getRotation', overloadIndex=1 )
    def getRotation(self, space='object', quaternion=False, **kwargs):
        # quaternions are the only method that support a space parameter
        space = self._getSpaceArg(space, kwargs )
        if space.lower() in ('object', 'pretransform', 'transform') and not quaternion:
            # In this case, we can just go straight to the EulerRotation,
            # without having to go through Quaternion - this means we will
            # get information like angles > 360 degrees
            euler = _api.MEulerRotation()
            self.__apimfn__().getRotation(euler)
            rot = datatypes.EulerRotation(euler)
        else:
            rot = self._getRotation(space=space)
            if not quaternion:
                rot =  rot.asEulerRotation()
        if isinstance(rot, datatypes.EulerRotation):
            rot.setDisplayUnit( datatypes.Angle.getUIUnit() )
        return rot
operator for `ObjectSet.getIntersection`
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/Transform.getRotation--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/ObjectSet.__and__