The idea is that you have a list of items at different points in space, and you want a hierarchical system of boxes containing those items. More...
#include <cmath>
#include <stdlib.h>
#include <vector>
#include "box_system.h"
#include "output.h"
#include "memorymanag.h"
#include "utilities.h"
Functions | |
static ergo_real | get_min_distance_from_point_to_box (const ergo_real *boxCenterCoords, ergo_real halfwidth, const ergo_real *point) |
static int | compare_ints (const void *p1, const void *p2) |
The idea is that you have a list of items at different points in space, and you want a hierarchical system of boxes containing those items.
You give a list of items, and the function create_box_system will create a system of boxes for you.
static int compare_ints | ( | const void * | p1, | |
const void * | p2 | |||
) | [static] |
Referenced by BoxSystem::get_items_near_point().
static ergo_real get_min_distance_from_point_to_box | ( | const ergo_real * | boxCenterCoords, | |
ergo_real | halfwidth, | |||
const ergo_real * | point | |||
) | [static] |
Referenced by BoxSystem::get_items_near_point_recursive().