Here's an animation of the principle. Note that it produces slightly radiused corners.
There's a similar tool (called a
mortiser) that does roughly the same thing for wood. It uses a different principle, though: brute force. (It's a combination chisel and drill.)