3 int Param::get_number_of_micro_cells_wide()
const {
4 return this->ncw * this->NMCL;
7 int Param::get_number_of_micro_cells_high()
const {
8 return this->nch * this->NMCL;
11 MicroCellPosition Param::get_micro_cell_position_from_cell_index(
int cell_index)
const {
12 int x = cell_index / this->get_number_of_micro_cells_high();
13 int y = cell_index % this->get_number_of_micro_cells_high();
18 return position.x >= 0
20 && position.x < this->get_number_of_micro_cells_wide()
21 && position.y < this->get_number_of_micro_cells_high();
25 int x = (position.x + this->get_number_of_micro_cells_wide()) % this->get_number_of_micro_cells_wide();
26 int y = (position.y + this->get_number_of_micro_cells_high()) % this->get_number_of_micro_cells_high();
27 return x * this->get_number_of_micro_cells_high() + y;