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

◆ tfloat_arithop_turnpt()

int tfloat_arithop_turnpt ( Datum  start1,
Datum  end1,
Datum  start2,
Datum  end2,
Datum param  UNUSED,
TimestampTz  lower,
TimestampTz  upper,
TimestampTz t1,
TimestampTz t2 
)

Find the single timestamptz at which the operation of two temporal float segments is at a local minimum/maximum.

The function supposes that the instants are synchronized, that is, start1->t = start2->t and end1->t = end2->t. The function only return an intersection at the middle, that is, it it returns false if the timestamp found is not at a bound

Note
This function is called only when both sequences are linear