Eg: $rect_x[0], $rect_y[0] are the coordinates of rectangle 1. $point_x[0], $point_y[0] are some point linked to rectangle 1