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

AVL.SplitRectangle

Splits the rectangle into two along the direction.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SplitRectangle
(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.SplitDirection inSplitDirection,
	out AvlNet.Rectangle2D outRectangle1,
	out AvlNet.Rectangle2D outRectangle2
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inSplitDirectionAvlNet.SplitDirection
outRectangle1AvlNet.Rectangle2D
outRectangle2AvlNet.Rectangle2D

Errors

List of possible exceptions:

Error type Description
DomainError Unknown split direction in SplitRectangle.

See also