Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » SplitRectangle

SplitRectangle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Splits the rectangle into two along the direction.

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
Input value inRectangle const Rectangle2D&
Input value inSplitDirection const SplitDirection::Type
Output value outRectangle1 Rectangle2D&
Output value outRectangle2 Rectangle2D&

Errors

List of possible exceptions:

Error type Description
DomainError Unknown split direction in SplitRectangle.