IMathDistanceRectangleToRectangleY Method

Calculates the vertical distance between two rectangles.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistanceRectangleToRectangleY(
	RectangleD rect1,
	RectangleD rect2,
	out bool overlapping
)

Parameters

rect1  RectangleD
First rectangle
rect2  RectangleD
Second rectangle
overlapping  Boolean
True if the rectangles overlap in Y direction

Return Value

Double
Minimal distance in Y direction

See Also