PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtriangle_perimeter_2d()

double lwtriangle_perimeter_2d ( const LWTRIANGLE triangle)

Definition at line 224 of file lwtriangle.c.

References LWTRIANGLE::points, and ptarray_length_2d().

Referenced by lwgeom_perimeter_2d().

225 {
226  if( triangle->points )
227  return ptarray_length_2d(triangle->points);
228  else
229  return 0.0;
230 }
POINTARRAY * points
Definition: liblwgeom.h:433
double ptarray_length_2d(const POINTARRAY *pts)
Find the 2d length of the given POINTARRAY (even if it's 3d)
Definition: ptarray.c:1692
Here is the call graph for this function:
Here is the caller graph for this function: