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

◆ box_largest_axis()

static int box_largest_axis ( const RTree rtree,
const void *  box 
)
static

Return the axis with the largest length in a bounding box.

The function determines the axis of a bounding box that has the largest length by comparing the lengths of the bounding box along each dimension defined in the RTree

Parameters
[in]boxPointer to the bounding box whose largest axis is to be determined.
[in]rtreePointer to the RTree structure, which provides the method for calculating axis lengths and defines the number of dimensions.
Returns
The index of the axis with the largest length.