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

◆ tpoint_geo_bearing_turnpt()

static int tpoint_geo_bearing_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 the minimum bearing during the period defined by the output timestamps, return 0 otherwise.

Parameters
[in]start,endValues defining the segment
[in]pointGeometric/geography point to locate
[in]lower,upperTimestampts defining the segment
[out]t1,t2Timestamps defining the resulting period, may be equal
Precondition
The segment is not constant and has linear interpolation
Postcondition
As there is a single turning point, t2 is set to t1