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

◆ stbox_largest_axis()

static int stbox_largest_axis ( const STBox box,
const RTree rtree 
)
static

Identifies the axis with the largest length in an STBox.

This function determines which axis of an STBox has the largest length by comparing the lengths of the STBox along each dimension defined in the RTree. The axis with the greatest length is identified and returned.

Parameters
[in]boxPointer to the STBox structure 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.