PostGIS  2.4.9dev-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 771 of file lwgeodetic.c.

References edge_point_side(), LW_FALSE, and LW_TRUE.

Referenced by edge_contains_point().

772 {
773  int side = edge_point_side(e, p);
774  if ( side == 0 )
775  return LW_TRUE;
776 
777  return LW_FALSE;
778 }
#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:690
Here is the call graph for this function:
Here is the caller graph for this function: