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

◆ tcbuffersegm_distance_at_time()

static double tcbuffersegm_distance_at_time ( double  dx0,
double  dy0,
double  vx,
double  vy,
double  r0,
double  vr,
double  t 
)
inlinestatic

Compute the temporal distance between two circular buffers at time t.

Parameters
[in]dx0,dy0Initial spatial offset between the buffer centres.
[in]vx,vyRelative velocities in the x and y directions.
[in]r0Initial sum of the radii.
[in]vrRate of change of the sum of the radii.
[in]tTime offset from the lower bound of the segment.
Returns
The temporal distance at time t, i.e., the Euclidean distance between the centres minus the sum of the radii.