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

Definition at line 174 of file lwtriangle.c.

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

Referenced by lwgeom_is_empty(), and lwtriangle_to_wkt_sb().

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

Here is the caller graph for this function: