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

◆ seg2d_side()

static int seg2d_side ( const POINT2D p1,
const POINT2D p2,
const POINT2D q 
)
static

Determines the side of segment P where Q lies.

  • Return -1 if point Q is left of segment P
  • Return 1 if point Q is right of segment P
  • Return 0 if point Q in on segment P
    Note
    Function adapted from lw_segment_side() to take into account precision errors