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

◆ box_area()

static double box_area ( const STBox box,
const RTree rtree 
)
static

Calculates the area (or volume) of an STBox.

This function computes the area or volume of an STBox b multiplying the lengths of the box along each axis. The calculation iterates over all dimensions defined in the RTree.

Parameters
[in]boxPointer to the STBox structure for which the area or volume is to be calculated.
[in]rtreePointer to the RTree structure, which provides the number of dimensions and the method for retrieving axis lengths.
Returns
The computed area or volume of the STBox.