PostGIS  2.3.7dev-r@@SVN_REVISION@@

◆ edge_point_on_plane()

int edge_point_on_plane ( const GEOGRAPHIC_EDGE e,

Returns true if the point p is on the great circle plane.

Forms the scalar triple product of A,B,p and if the volume of the resulting parallelepiped is near zero the point p is on the great circle plane.

Definition at line 740 of file lwgeodetic.c.

References edge_point_side(), LW_FALSE, and LW_TRUE.

Referenced by edge_contains_point().

741 {
742  int side = edge_point_side(e, p);
743  if ( side == 0 )
744  return LW_TRUE;
746  return LW_FALSE;
747 }
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
static int edge_point_side(const GEOGRAPHIC_EDGE *e, const GEOGRAPHIC_POINT *p)
Returns -1 if the point is to the left of the plane formed by the edge, 1 if the point is to the righ...
Definition: lwgeodetic.c:659
Here is the call graph for this function:
Here is the caller graph for this function: