PostGIS  2.1.10dev-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:389
int npoints
Definition: liblwgeom.h:327
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51

Here is the caller graph for this function: