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

◆ seg2d_intersection()

static int seg2d_intersection ( const POINT2D a,
const POINT2D b,
const POINT2D c,
const POINT2D d,
POINT2D p 
)
static

Find the unique intersection point p between two closed segments ab and cd.

Return p and a MEOS_SEG_INTER_TYPE value.

Note
Currently, the function only computes p if the result value is MEOS_SEG_TOUCH_END, since the return value is never used in other cases.
If the segments overlap no point is returned since they can be an infinite number of them.