RectHVDistanceSquaredTo Method |
Returns the square of 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 DistanceSquaredTo(
Point2D p
)
Parameters
- p
- Type: Algs4NetPoint2D
p the point
Return Value
Type:
Doublethe square of the Euclidean distance between the point
p and
the closest point on this rectangle; 0 if the point is contained
in this rectangle
See Also