Click or drag to resize
RectHVDistanceSquaredTo Method
Returns the square of the Euclidean distance between this rectangle and the point p.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public double DistanceSquaredTo(
	Point2D p
)

Parameters

p
Type: Algs4NetPoint2D
p the point

Return Value

Type: Double
the 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