MobilityDB  1.0

◆ tsequence_intersection()

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

Returns true if the two segments of the temporal values intersect at the 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