PostGIS  2.3.7dev-r@@SVN_REVISION@@
double lwtriangle_perimeter ( const LWTRIANGLE triangle)

Definition at line 209 of file lwtriangle.c.

References LWTRIANGLE::points, and ptarray_length().

Referenced by lwgeom_perimeter().

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

Here is the call graph for this function:

Here is the caller graph for this function: