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

◆ compute_s()

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

Computes the relative position of point on segment v(vs, ve)

s < 0 -> p before point vs s = 0 -> p = vs 0 < s < 1 -> p = vs * (1 - s) + ve * s s = 1 -> p = ve 1 < s -> p after point ve