You are here: Start » AVL.NET » AVL.SplitRectangle Method

AVL.SplitRectangle Method

Splits the rectangle into two along the direction.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Error type Description
DomainError Unknown inSplitDirection

See also