Module palarust::ind_hlp [] [src]

Functions

get_abs_grid_indices

Returns a (x,y) tuple corresponding to the 1d index in absolute coordinates

get_grid_idx

Returns the 1st index of node at position (x,y)

get_grid_indices

Returns a (x,y) tuple corresponding to the 1d index in local coordinates

get_next

Returns a tuple containing the (x,y)-indices of position next position in the dir direction moved by distance dx.

get_raw_grid_idx

Returns the 1st index of a population at position (x,y)

sub_index

Returns a vector containing the index of the velocities having a component pointing towards dir, ori.