Back to FabImage Library Lite website
You are here: Start » Geometry 2D Constructions » SplitRectangle

SplitRectangle
Splits the rectangle into two along the direction.
Syntax
void fil::SplitRectangle ( const fil::Rectangle2D& inRectangle, const fil::SplitDirection::Type inSplitDirection, fil::Rectangle2D& outRectangle1, fil::Rectangle2D& outRectangle2 )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
inSplitDirection | const SplitDirection::Type | ||
![]() |
outRectangle1 | Rectangle2D& | ||
![]() |
outRectangle2 | Rectangle2D& |
Errors
Error type | Description |
---|---|
DomainError | Unknown inSplitDirection |