A: You want to create a 2D 2-space field with
dims[0] = 2 dims[1] = n (where n is the number of xy pairs)
When storing the data in the data area, store it as x1,y1,x2,y2,... xn,yn.