Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » ResizeRectangle
ResizeRectangle
Header: | AVL.h |
---|---|
Namespace: | avl |
Changes dimensions of a rectangle.
Syntax
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 | |
---|---|---|---|---|---|
inRectangle | const Rectangle2D& | ||||
inAnchor | Anchor2D::Type | TopLeft | |||
inNewWidth | Optional<float> | 0.0 - | NIL | ||
inNewHeight | Optional<float> | 0.0 - | NIL | ||
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.