Moved isLocal logic from Rotate to TransformBase.