PostGIS  2.3.7dev-r@@SVN_REVISION@@
LWTRIANGLE* lwgeom_as_lwtriangle ( const LWGEOM lwgeom)

Definition at line 147 of file lwgeom.c.

References TRIANGLETYPE, and LWGEOM::type.

Referenced by extract_pointarrays_from_lwgeom(), LWGEOM_dumppoints(), LWGEOM_exteriorring_polygon(), and lwgeom_swap_ordinates().

148 {
149  if ( lwgeom == NULL ) return NULL;
150  if ( lwgeom->type == TRIANGLETYPE )
151  return (LWTRIANGLE *)lwgeom;
152  else return NULL;
153 }
#define TRIANGLETYPE
Definition: liblwgeom.h:97
uint8_t type
Definition: liblwgeom.h:395

Here is the caller graph for this function: