question: sets all matrix cells in a square around the given x , y coordinates to the requested state . concode_field_sep int generation concode_elem_sep int[] swap concode_elem_sep int width concode_elem_sep CARule rule concode_elem_sep int[] matrix concode_elem_sep int height concode_field_sep int getIndexFor concode_elem_sep CAMatrix setStateAt concode_elem_sep CAMatrix update concode_elem_sep int getWidth concode_elem_sep CAMatrix seedImage concode_elem_sep CAMatrix setRule concode_elem_sep int getHeight concode_elem_sep int[] getMatrix concode_elem_sep int[] getSwapBuffer concode_elem_sep MatrixEvolver getRule concode_elem_sep int getGeneration concode_elem_sep CAMatrix reset concode_elem_sep CAMatrix addNoise concode_elem_sep CAMatrix addNoise
target: CAMatrix function ( int arg0 , int arg1 , int arg2 , int arg3 ) { for ( int loc0 = arg1 - arg2 / 2 ; loc0 < arg1 + arg2 / 2 ; loc0 ++ ) { for ( int loc1 = arg0 - arg2 / 2 ; loc1 < arg0 + arg2 / 2 ; loc1 ++ ) { if ( loc1 >= 0 && loc1 < width && loc0 >= 0 && loc0 < height ) { int loc2 = loc1 + loc0 * width ; swap [ loc2 ] = matrix [ loc2 ] = arg3 ; } } } return this ; }