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

AVL.ResizeRectangle_Relative

Changes dimensions of a rectangle relatively.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ResizeRectangle_Relative
(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Anchor2D inAnchor,
	float inWidthScale,
	float inHeightScale,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inAnchorAvlNet.Anchor2DTopLeftDefault value: TopLeft.
inWidthScalefloat<0.0f, INF>1.0fDefault value: 1.0f.
inHeightScalefloat<0.0f, INF>1.0fDefault value: 1.0f.
outRectangleAvlNet.Rectangle2D

Examples

ResizeRectangle_Relative performed on the sample rectangle, inWidthScale = 2.0 and inHeightScale = 0.5.

See also