IMathDistanceRectangleToRectangle Method

Calculate the distance of two rectangles and check one of the rectangle is included in second one.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistanceRectangleToRectangle(
	RectangleD RectangleDistanceA,
	RectangleD RectangleDistanceB,
	out bool IncludedInRectangle
)

Parameters

RectangleDistanceA  RectangleD
First Rectangle for distance calculation.
RectangleDistanceB  RectangleD
Second Rectangle for distance calculation.
IncludedInRectangle  Boolean
Is one of the rectangles included in the other rectangle?

Return Value

Double
Distance of rectangle and second rectangle.

See Also