PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ edge_contains_point()

int edge_contains_point ( const GEOGRAPHIC_EDGE e,
const GEOGRAPHIC_POINT p 
)

Returns true if the point p is on the minor edge defined by the end points of e.

Definition at line 1030 of file lwgeodetic.c.

References edge_point_in_cone(), edge_point_on_plane(), LW_FALSE, LW_TRUE, and LWDEBUG.

Referenced by edge_distance_to_point(), edge_intersection(), lwline_covers_lwline(), and lwline_covers_lwpoint().

1031 {
1032  if ( edge_point_in_cone(e, p) && edge_point_on_plane(e, p) )
1033  /* if ( edge_contains_coplanar_point(e, p) && edge_point_on_plane(e, p) ) */
1034  {
1035  LWDEBUG(4, "point is on edge");
1036  return LW_TRUE;
1037  }
1038  LWDEBUG(4, "point is not on edge");
1039  return LW_FALSE;
1040 }
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
int edge_point_in_cone(const GEOGRAPHIC_EDGE *e, const GEOGRAPHIC_POINT *p)
Returns true if the point p is inside the cone defined by the two ends of the edge e...
Definition: lwgeodetic.c:784
int edge_point_on_plane(const GEOGRAPHIC_EDGE *e, const GEOGRAPHIC_POINT *p)
Returns true if the point p is on the great circle plane.
Definition: lwgeodetic.c:771
Here is the call graph for this function:
Here is the caller graph for this function: