Data Structures

Grids

Downloadds_grid_mirror(dsid,horiz,vert)   Mirrors the values of the given ds_grid data structure horizontally and/or vertically. Downloadds_grid_set_grid_region(id,source,x1,y1,x2,y2,xpos,ypos)   Copies the contents of the cells in the region in grid source to grid id. xpos and ypos indicate the place where the region must be placed in the grid. (Can also be used to copy values from one place in a grid to another.) Downloadds_grid_shuffle(grid)   Shuffles the elements of a ds_grid data structure. Downloadds_grid_swap_columns(grid,col1,col2)   Swaps two columns in the given ds_grid data structure. Downloadds_grid_swap_rows(grid,row1,row2)   Swaps two rows in the given ds_grid data structure. Downloadds_grid_translate(dsid,horiz,vert)   Shift the values of the given ds_grid data structure horizontally and vertically by the given amounts.

Comments? Click to Comment