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

Definition at line 175 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().

176 {
177  if ( !triangle->points || triangle->points->npoints < 1 )
178  return LW_TRUE;
179  return LW_FALSE;
180 }
POINTARRAY * points
Definition: liblwgeom.h:432
int npoints
Definition: liblwgeom.h:370
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75

Here is the caller graph for this function: