def _setup_xy(self, p):
self.debug("<STR_LIT>",p.bounds, p.xdensity, p.ydensity, p.x, p.y, p.orientation)<EOL>x_points,y_points = SheetCoordinateSystem(p.bounds, p.xdensity, p.ydensity).sheetcoordinates_of_matrixidx()<EOL>self.pattern_x, self.pattern_y = self._create_and_rotate_coordinate_arrays(x_points-p.x, y_points-p.y, p)<EOL>
Produce pattern coordinate matrices from the bounds and
density (or rows and cols), and transforms them according to
x, y, and orientation.