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

◆ compute_angle()

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

Computes the signed length of the cross product of the vectors (vs, p) and (vs, ve)

The sign of this value determines the relative position between p and the line l going through segment (vs, ve) (oriented towards ve). angle > 0: p is on the right of l angle = 0: P is on l angle < 0: P is on the left of l