Point.distance_to_point

Point.distance_to_point(point)[source]

Compute the distance to another point.

Parameters

point ([x, y, z] or compas.geometry.Point) – The other point.

Returns

float – The distance.

Examples

>>> a = Point(0.0, 0.0, 0.0)
>>> b = Point(1.0, 0.0, 0.0)
>>> a.distance_to_point(b)
1.0