returns the index of the cell that x & y fall into at the specified level
| 388 | |
| 389 | // returns the index of the cell that x & y fall into at the specified level |
| 390 | U32 LASquadtree::get_cell_index(const F64 x, const F64 y, U32 level) const |
| 391 | { |
| 392 | if (sub_level) |
| 393 | { |
| 394 | return level_offset[sub_level+level] + (sub_level_index << (level*2)) + get_level_index(x, y, level); |
| 395 | } |
| 396 | else |
| 397 | { |
| 398 | return level_offset[level]+get_level_index(x, y, level); |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | // returns the index of the cell that x & y fall into |
| 403 | U32 LASquadtree::get_cell_index(const F64 x, const F64 y) const |