Click or drag to resize

RectangleFDistance Method (RectangleF, PointF)

Calculates the distance between the specified point and rect.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static SizeF Distance(
	RectangleF rect,
	PointF point
)

Parameters

rect
Type: Eto.DrawingRectangleF
Rectangle for the source.
point
Type: Eto.DrawingPointF
Point to determine the distance from the rectangle.

Return Value

Type: SizeF

[Missing <returns> documentation for "M:Eto.Drawing.RectangleF.Distance(Eto.Drawing.RectangleF,Eto.Drawing.PointF)"]

Remarks
This calculates the horizontal and vertical distance of any of the edges of the rectangle to the specified point.
See Also