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

Definition at line 196 of file lwtriangle.c.

References LWTRIANGLE::points, and ptarray_length().

Referenced by lwgeom_perimeter().

197 {
198  if( triangle->points )
199  return ptarray_length(triangle->points);
200  else
201  return 0.0;
202 }
Definition: liblwgeom.h:389
double ptarray_length(const POINTARRAY *pts)
Find the 3d/2d length of the given POINTARRAY (depending on its dimensionality)
Definition: ptarray.c:1614

Here is the call graph for this function:

Here is the caller graph for this function: