Click or drag to resize

RectangleFDistance Method (RectangleF, RectangleF)

Calculates the distance between two rectangles.

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

Parameters

rect1
Type: Eto.DrawingRectangleF
First rectangle to compare
rect2
Type: Eto.DrawingRectangleF
Second rectangle to compare

Return Value

Type: SizeF

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

Remarks
This calculates the horizontal and vertical distance of any of the edges of each rectangle. If the rectangles intersect, the distance will be empty.
See Also