PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwtriangle_perimeter()

double lwtriangle_perimeter ( const LWTRIANGLE triangle)

Definition at line 208 of file lwtriangle.c.

209 {
210  if( triangle->points )
211  return ptarray_length(triangle->points);
212  else
213  return 0.0;
214 }
double ptarray_length(const POINTARRAY *pts)
Find the 3d/2d length of the given POINTARRAY (depending on its dimensionality)
Definition: ptarray.c:1717
POINTARRAY * points
Definition: liblwgeom.h:436

References LWTRIANGLE::points, and ptarray_length().

Referenced by lwgeom_perimeter().

Here is the call graph for this function:
Here is the caller graph for this function: