MobilityDB 1.3
Loading...
Searching...
No Matches

◆ unioned_area()

static double unioned_area ( const RTree rtree,
const void *  box1,
const void *  box2 
)
static

Return the length, area, or volume of the union of two bounding boxes.

The function first creates a new bounding box that is the union of the two input boxes, then calculates the length, area, or volume of this union box using the given RTree's dimensions

Parameters
[in]box1,box2Pointers to the bounding boxes
[in]rtreePointer to the RTree structure, which provides the number of dimensions and the method for the computation