PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtriangle_is_empty()

int lwtriangle_is_empty ( const LWTRIANGLE triangle)

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

182 {
183  if ( !triangle->points || triangle->points->npoints < 1 )
184  return LW_TRUE;
185  return LW_FALSE;
186 }
Definition: liblwgeom.h:433
int npoints
Definition: liblwgeom.h:371
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
Here is the caller graph for this function: