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

◆ compute_dist2()

static double compute_dist2 ( POINT4D  p,
POINT4D  vs,
POINT4D  ve 
)
inlinestatic

Computes the distance between point p and segment v(vs, ve)

Note: this assumes that the projection of p on the line l going through (vs, ve) is between vs and ve. (0 <= compute_s(p, vs, ve) <= 1)