pysal.lib.cg.get_points_dist

pysal.lib.cg.get_points_dist(pt1, pt2)[source]

Returns the distance between a pair of points.

get_points_dist(Point, Point) -> number

Parameters:
pt1 : a point
pt2 : the other point

Examples

>>> get_points_dist(Point((4, 4)), Point((4, 8)))
4.0
>>> get_points_dist(Point((0, 0)), Point((0, 0)))
0.0