ergo
box_system.cc File Reference

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)

Detailed Description

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.


Function Documentation

static int compare_ints ( const void *  p1,
const void *  p2 
) [static]
static ergo_real get_min_distance_from_point_to_box ( const ergo_real boxCenterCoords,
ergo_real  halfwidth,
const ergo_real point 
) [static]