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

◆ datumsegm_locate()

long double datumsegm_locate ( Datum  value1,
Datum  value2,
Datum  value,
meosType  basetype 
)

Return a float value in (0,1) if a segment of base values intersects a base value, return -1.0 otherwise.

Parameters
[in]value1,value2Values defining the segment
[in]valueValue to locate
[in]basetypeType of the values
Returns
Return -1.0 if the value is not located in the segment or if the value is equal to the first or the last value. The reason is that the function is used in the lifting infrastructure for determining the crossings after testing whether the bounds of the segments are equal to a value.