PostGIS  2.2.7dev-r@@SVN_REVISION@@
int lwtriangle_is_empty ( const LWTRIANGLE triangle)

Definition at line 162 of file lwtriangle.c.

References LW_FALSE, LW_TRUE, POINTARRAY::npoints, and LWTRIANGLE::points.

Referenced by lwgeom_is_empty(), lwtriangle_reverse(), and lwtriangle_to_wkt_sb().

163 {
164  if ( !triangle->points || triangle->points->npoints < 1 )
165  return LW_TRUE;
166  return LW_FALSE;
167 }
POINTARRAY * points
Definition: liblwgeom.h:417
int npoints
Definition: liblwgeom.h:355
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61

Here is the caller graph for this function: