MobilityDB 1.1

◆ tsegment_intersection()

bool tsegment_intersection ( const TInstant start1,
const TInstant end1,
bool  linear1,
const TInstant start2,
const TInstant end2,
bool  linear2,
Datum inter1,
Datum inter2,
TimestampTz t 
)

Return true if two segments of a temporal sequence intersect at a timestamp.

Parameters
[in]start1,end1Temporal instants defining the first segment
[in]linear1True if the first segment has linear interpolation
[in]start2,end2Temporal instants defining the second segment
[in]linear2True if the second segment has linear interpolation
[out]inter1,inter2Base values taken by the two segments at the timestamp
[out]tTimestamp
Precondition
The instants are synchronized, i.e., start1->t = start2->t and end1->t = end2->t