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

◆ tcbuffersegm_intersection()

int tcbuffersegm_intersection ( Datum  start1,
Datum  end1,
Datum  start2,
Datum  end2,
TimestampTz  lower,
TimestampTz  upper,
TimestampTz t1,
TimestampTz t2 
)

Return 1 if the segments of two temporal circular buffers intersect during the period defined by the timestamps output in the last arguments.

Parameters
[in]start1,end1Temporal instants defining the first segment
[in]start2,end2Temporal instants defining the second segment
[in]lower,upperTimestamps defining the segments
[out]t1,t2
Returns
Number of timestamps in the result, between 0 and 2. In the case of a single result both t1 and t2 are set to the unique timestamp