PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwtriangle_is_empty()

int lwtriangle_is_empty ( const LWTRIANGLE triangle)

Definition at line 174 of file lwtriangle.c.

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

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

Referenced by lwgeom_is_empty(), and lwtriangle_to_wkt_sb().

Here is the caller graph for this function: