Transfers a segment of a (1->4)-alpha-D-glucan to a new position in an acceptor, which may be glucose or a (1->4)-alpha-D-glucan. Binds 1 Ca(2+) ion per subunit. Monomer. Belongs to the glycosyl hydrolase 13 family.