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

◆ floatsegm_locate()

long double floatsegm_locate ( double  start,
double  end,
double  value 
)

Return a float in (0,1) if a float segment intersects a float with respect to an epsilon value, return -1.0 if the value is not located in the segment or if it is approximately equal to the start or the end value.

Parameters
[in]start,endValues defining the segment
[in]valueValue to locate
Note
The function returns -1.0 if the value is approximately equal to the start or the end value since it is used in the lifting infrastructure for determining the crossings or the turning points after verifying that the bounds of the segment are not equal to the value.