Back to Aurora Vision Library website

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

ResizeRectangle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Changes dimensions of a rectangle.

Syntax

C++
C#
 
void avl::ResizeRectangle
(
	const avl::Rectangle2D& inRectangle,
	avl::Anchor2D::Type inAnchor,
	atl::Optional<float> inNewWidth,
	atl::Optional<float> inNewHeight,
	avl::Rectangle2D& outRectangle
)

Parameters

Name Type Range Default Description
Input value inRectangle const Rectangle2D&
Input value inAnchor Anchor2D::Type TopLeft
Input value inNewWidth Optional<float> 0.0 - NIL
Input value inNewHeight Optional<float> 0.0 - NIL
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.

Examples

ResizeRectangle performed on the sample rectangle, inNewWidth = 177.0 and inNewHeight = 104.0.