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

AVL.ResizeRectangle

Changes dimensions of a rectangle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ResizeRectangle
(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Anchor2D inAnchor,
	float? inNewWidth,
	float? inNewHeight,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inAnchorAvlNet.Anchor2DTopLeftDefault value: TopLeft.
inNewWidthfloat?<0.0f, INF>
inNewHeightfloat?<0.0f, INF>
outRectangleAvlNet.Rectangle2D

Examples

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

See also