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

◆ get_axis_length()

static double get_axis_length ( const RTree rtree,
const STBox box,
int  axis 
)
inlinestatic

Calculates the length of an STBox along a specified axis.

This function computes the difference between the upper and lower bounds of an STBox along a given axis, effectively calculating the length of the box along that axis.

Parameters
[in]rtreePointer to the RTree structure containing the function to retrieve axis values.
[in]boxPointer to the STBox structure for which the axis length is to be calculated.
[in]axisThe specific axis (e.g. 0, 1, 2) along which to compute the length.
Returns
The length of the STBox as a double along the specified axis.