PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtriangle()

LWTRIANGLE* lwgeom_as_lwtriangle ( const LWGEOM lwgeom)

Definition at line 134 of file lwgeom.c.

References TRIANGLETYPE, and LWGEOM::type.

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

135 {
136  if ( lwgeom == NULL ) return NULL;
137  if ( lwgeom->type == TRIANGLETYPE )
138  return (LWTRIANGLE *)lwgeom;
139  else return NULL;
140 }
#define TRIANGLETYPE
Definition: liblwgeom.h:83
uint8_t type
Definition: liblwgeom.h:380
Here is the caller graph for this function: