MobilityDB  1.0

◆ seg2d_intersection()

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

Finds the UNIQUE point of intersection p between two closed segments ab and cd.

Returns p and a MOBDB_SEG_INTER_TYPE value. Notice that if the segments overlap no point is returned since they can be an infinite number of them