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

◆ datumsegm_interpolate()

Datum datumsegm_interpolate ( Datum  start,
Datum  end,
meosType  temptype,
long double  ratio 
)

Return base value interpolated from a base segment with respect to a fraction of its total length.

Parameters
[in]start,endTemporal instants defining the segment
[in]temptypeTemporal type of the value
[in]ratioFloat between 0 and 1 representing the fraction of the total length of the segment where the interpolated buffer must be located
Note
Return false if the value is equal to the first or the last instant. 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 the given value.