This works by taking a set of sample points (100 for now) and applying a function to them. But how are you supposed to apply a function to 2d vectors? It's complex (hehe), using imaginary numbers. i is the imaginary number, defined as i = sqrt(-1). This definition is arbitrary, of course, but it allows square rooting negative numbers, which don't have real solutions. Then, you can cut the shape into 100 pieces and apply the function to those.
FYI You can set shape scale to 1.41 if you want to scale the shape by sqrt(2) (Useful if you want to make the square line up with the grid)