Back to Aurora Vision Library website

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


Header: AVL.h
Namespace: avl
Module: FoundationLite

Changes dimensions of a rectangle by adding some values.


void avl::ResizeRectangle_Delta
	const avl::Rectangle2D& inRectangle,
	avl::Anchor2D::Type inAnchor,
	float inWidthDelta,
	float inHeightDelta,
	avl::Rectangle2D& outRectangle


Name Type Default Description
Input value
inRectangle const Rectangle2D&
Input value
inAnchor Anchor2D::Type TopLeft
Input value
inWidthDelta float 0.0f Value added to width of the rectangle
Input value
inHeightDelta float 0.0f Value added to height of the rectangle
Output value
outRectangle Rectangle2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inRectangle and outRectangle

Read more about In-place Computation.


List of possible exceptions:

Error type Description
DomainError Negative rectangle dimensions in ResizeRectangle_Delta.