RectangleDSubtract(RectangleD, RectangleD, Boolean, Boolean) Method
Reduce size of main rectangle by infinity lines of rectangle sub
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static RectangleD Subtract(
RectangleD main,
RectangleD sub,
out bool inside,
bool onlyMainSide
)
Public Shared Function Subtract (
main As RectangleD,
sub As RectangleD,
<OutAttribute> ByRef inside As Boolean,
onlyMainSide As Boolean
) As RectangleD
public:
static RectangleD Subtract(
RectangleD main,
RectangleD sub,
[OutAttribute] bool% inside,
bool onlyMainSide
)
static member Subtract :
main : RectangleD *
sub : RectangleD *
inside : bool byref *
onlyMainSide : bool -> RectangleD
- 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
- onlyMainSide Boolean
- Cut rectangle only on the side with biggest overlapping.
RectangleDthe cuted main rectangle or complete area if no cut is possible