Returns the Euclidean distance between this rectangle and the point p.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic double DistanceTo(
Point2D p
)
Parameters
- p
- Type: Algs4NetPoint2D
the point
Return Value
Type:
Doublethe Euclidean distance between the point
p and the closest point
on this rectangle; 0 if the point is contained in this rectangle
See Also