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

◆ lw_seg_length()

double lw_seg_length ( const POINT2D A1,
const POINT2D A2 
)

Returns the length of a linear segment.

Definition at line 75 of file lwalgorithm.c.

76{
77 return sqrt((A1->x-A2->x)*(A1->x-A2->x)+(A1->y-A2->y)*(A1->y-A2->y));
78}
double y
Definition liblwgeom.h:376
double x
Definition liblwgeom.h:376

References POINT2D::x, and POINT2D::y.