PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ edge_point_on_plane()

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.

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 775 of file lwgeodetic.c.

776 {
777  int side = edge_point_side(e, p);
778  if ( side == 0 )
779  return LW_TRUE;
780 
781  return LW_FALSE;
782 }
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
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:694

References edge_point_side(), LW_FALSE, and LW_TRUE.

Referenced by edge_contains_point().

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