PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwtriangle_perimeter()

double lwtriangle_perimeter ( const LWTRIANGLE triangle)

Definition at line 201 of file lwtriangle.c.

202 {
203  if( triangle->points )
204  return ptarray_length(triangle->points);
205  else
206  return 0.0;
207 }
double ptarray_length(const POINTARRAY *pts)
Find the 3d/2d length of the given POINTARRAY (depending on its dimensionality)
Definition: ptarray.c:1728
POINTARRAY * points
Definition: liblwgeom.h:481

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: