Method OuterRectInsideContainer
OuterRectInsideContainer(RectI, NineRectsParts)
Returns the first outer rectangle that is fully contained within the specified container rectangle.
public readonly RectI? OuterRectInsideContainer(RectI container, NineRects.NineRectsParts parts = NineRectsParts.Outer)
Parameters
containerRectIThe rectangle that defines the container area.
partsNineRects.NineRectsPartsThe parts of the nine-part grid to consider for containment checking. Optional. Default is All.
Returns
- RectI?
The first rectangle that is fully contained within the container, or null if no such rectangle is found.