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

◆ tpoint_geo_distance_turnpt()

static int tpoint_geo_distance_turnpt ( Datum  start,
Datum  end,
Datum  point,
TimestampTz  lower,
TimestampTz  upper,
TimestampTz t1,
TimestampTz t2 
)
static

Return 1 or 2 if a temporal point segment and a point are at a minimum distance during the period defined by the output timestamps, return 0 otherwise.

These are the turning points when computing the temporal distance.

Parameters
[in]start,endValues defining the first segment
[in]pointPoint to locate
[in]lower,upperMinimum distance at turning point
[out]t1,t2Timestamps defining the resulting period, may be equal
Precondition
The segment is not constant
Postcondition
As there is a single turning point, t2 is set to t1