You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.ResizeRectangle_Delta

AVL.ResizeRectangle_Delta

Changes dimensions of a rectangle by adding some values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ResizeRectangle_Delta
(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Anchor2D inAnchor,
	float inWidthDelta,
	float inHeightDelta,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inAnchorAvlNet.Anchor2DTopLeftDefault value: TopLeft.
inWidthDeltafloat0.0fValue added to width of the rectangle. Default value: 0.0f.
inHeightDeltafloat0.0fValue added to height of the rectangle. Default value: 0.0f.
outRectangleAvlNet.Rectangle2D

Errors

List of possible exceptions:

Error type Description
DomainError Negative rectangle dimensions in ResizeRectangle_Delta.

See also