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

◆ double2_collinear()

bool double2_collinear ( const double2 x1,
const double2 x2,
const double2 x3,
double  ratio 
)

Return true if the three double2 values are collinear.

Parameters
[in]x1,x2,x3Input values
[in]ratioValue in [0,1] representing the duration of the timestamps associated to x1 and x2 divided by the duration of the timestamps associated to x1 and x3
Precondition
The function supposes that the segments are not constant
Note
Function used for normalizing temporal values by removing redundant instants