MobilityDB  1.0

◆ tdwithin_tpointseq_tpointseq1()

static int tdwithin_tpointseq_tpointseq1 ( Datum  sv1,
Datum  ev1,
Datum  sv2,
Datum  ev2,
TimestampTz  lower,
TimestampTz  upper,
double  dist,
bool  hasz,
datum_func3  func,
TimestampTz *  t1,
TimestampTz *  t2 
)
static

Returns the timestamps at which the segments of the two temporal points are within the given distance.

Parameters
[in]sv1,ev1Points defining the first segment
[in]sv2,ev2Points defining the second segment
[in]lower,upperTimestamps associated to the segments
[in]distDistance
[in]haszTrue for 3D segments
[in]funcDistance function (2D or 3D)
[out]t1,t2Resulting timestamps
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