PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lw_pt_on_segment()

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

Definition at line 110 of file lwalgorithm.c.

111{
112 int side = lw_segment_side(A1, A2, P);
113 if (side != 0) return LW_FALSE;
114 return lw_pt_in_seg(P, A1, A2);
115}
#define LW_FALSE
Definition liblwgeom.h:94
int lw_pt_in_seg(const POINT2D *P, const POINT2D *A1, const POINT2D *A2)
Returns true if P is between A1/A2.
int lw_segment_side(const POINT2D *p1, const POINT2D *p2, const POINT2D *q)
lw_segment_side()
Definition lwalgorithm.c:70

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: