Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Constructions » SplitRectangle
Splits the rectangle into two along the direction.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::SplitRectangle ( const avl::Rectangle2D& inRectangle, const avl::SplitDirection::Type inSplitDirection, avl::Rectangle2D& outRectangle1, avl::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 |