RectangleDSubtract(RectangleD, RectangleD, Boolean) 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,
	out bool inside
)

Parameters

main  RectangleD
basis rectangle to reduce
sub  RectangleD
rectangle with min/max values to cut the main rectangle with infinity lines.
inside  Boolean
rectangle contain in other rectancle

Return Value

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

See Also