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

◆ cbuffersegm_distance_turnpt()

int cbuffersegm_distance_turnpt ( const Cbuffer start1,
const Cbuffer end1,
const Cbuffer start2,
const Cbuffer end2,
TimestampTz  lower,
TimestampTz  upper,
TimestampTz t1,
TimestampTz t2 
)

Return the TWO timestamps at which two temporal circular buffers segments are at the minimum distance.

These are the turning points when computing the temporal distance.

Parameters
[in]start1,end1Circular buffers defining the first segment
[in]start2,end2Circular buffers the second segment
[out]lower,upperTimestamps defining the segments
[out]t1,t2Timestamps at turning points
Precondition
The segments are not constant.