PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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:2003
POINTARRAY * points
Definition liblwgeom.h:495

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: