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

◆ box_unioned_area()

static double box_unioned_area ( const STBox box,
const STBox other_box,
const RTree rtree 
)
static

Calculates the area (or volume) of the union of two STBoxes.

This function computes the area or volume of the resulting STBox that represents the union of two given STBoxes. It first creates a new STBox that is the union of the two input boxes, then calculates the area or volume of this union box using the specified RTree's dimensions.

Parameters
[in]boxPointer to the first STBox structure.
[in]other_boxPointer to the second STBox structure to be unioned with the first.
[in]rtreePointer to the RTree structure, which provides the number of dimensions and the method for calculating areas.
Returns
The area or volume of the unioned STBox.