MobilityDB 1.3
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

◆ 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 though 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