RectangleDSubtract(RectangleD, RectangleD) Method

Reduce size of main rectangle by infinity lines of rectangle sub

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static RectangleD Subtract(
	RectangleD main,
	RectangleD sub
)

Parameters

main  RectangleD
basis rectangle to reduce
sub  RectangleD
rectangle with min/max values to cut the main rectangle with infinity lines.

Return Value

RectangleD
the cuted main rectangle or complete area if no cut is possible

See Also