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

Definition at line 214 of file lwgeom.c.

References TRIANGLETYPE, and LWGEOM::type.

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

215 {
216  if ( lwgeom == NULL ) return NULL;
217  if ( lwgeom->type == TRIANGLETYPE )
218  return (LWTRIANGLE *)lwgeom;
219  else return NULL;
220 }
#define TRIANGLETYPE
Definition: liblwgeom.h:97
uint8_t type
Definition: liblwgeom.h:395

Here is the caller graph for this function: