PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 724 of file lwgeodetic.c.

References edge_point_side(), LW_FALSE, and LW_TRUE.

Referenced by edge_contains_point().

725 {
726  int side = edge_point_side(e, p);
727  if ( side == 0 )
728  return LW_TRUE;
730  return LW_FALSE;
731 }
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
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:643

Here is the call graph for this function:

Here is the caller graph for this function: