skspatial.objects.Point.distance_point¶
- Point.distance_point(other: Union[ndarray, Sequence]) float64 [source]¶
Return the distance to another point.
- Parameters
- otherarray_like
Other point.
- Returns
- np.float64
Distance between the points.
Examples
>>> from skspatial.objects import Point
>>> point = Point([1, 2]) >>> point.distance_point([1, 2]) 0.0
>>> point.distance_point([-1, 2]) 2.0
>>> Point([1, 2, 0]).distance_point([1, 2, 3]) 3.0