PostGIS  2.2.7dev-r@@SVN_REVISION@@
double lw_seg_length ( const POINT2D A1,
const POINT2D A2 
)

Returns the length of a linear segment.

Definition at line 60 of file lwalgorithm.c.

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

61 {
62  return sqrt((A1->x-A2->x)*(A1->x-A2->x)+(A1->y-A2->y)*(A1->y-A2->y));
63 }
double x
Definition: liblwgeom.h:312
double y
Definition: liblwgeom.h:312