ZigZag - calculate the coordinates on the fly.