PostGIS  3.2.2dev-r@@SVN_REVISION@@

◆ lw_pt_on_segment()

int lw_pt_on_segment ( const POINT2D A1,
const POINT2D A2,
const POINT2D P 
)

Definition at line 103 of file lwalgorithm.c.

104 {
105  int side = lw_segment_side(A1, A2, P);
106  if (side != 0) return LW_FALSE;
107  return lw_pt_in_seg(P, A1, A2);
108 }
#define LW_FALSE
Definition: liblwgeom.h:108
int lw_pt_in_seg(const POINT2D *P, const POINT2D *A1, const POINT2D *A2)
Returns true if P is between A1/A2.
Definition: lwalgorithm.c:96
int lw_segment_side(const POINT2D *p1, const POINT2D *p2, const POINT2D *q)
lw_segment_side()
Definition: lwalgorithm.c:63

References LW_FALSE, lw_pt_in_seg(), and lw_segment_side().

Referenced by ptarray_raycast_intersections().

Here is the call graph for this function:
Here is the caller graph for this function: