PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtriangle_perimeter()

double lwtriangle_perimeter ( const LWTRIANGLE triangle)

Definition at line 215 of file lwtriangle.c.

References LWTRIANGLE::points, and ptarray_length().

Referenced by lwgeom_perimeter().

216 {
217  if( triangle->points )
218  return ptarray_length(triangle->points);
219  else
220  return 0.0;
221 }
Definition: liblwgeom.h:433
double ptarray_length(const POINTARRAY *pts)
Find the 3d/2d length of the given POINTARRAY (depending on its dimensionality)
Definition: ptarray.c:1720
Here is the call graph for this function:
Here is the caller graph for this function: