You are here: Start » AVL.NET » AVS.CreateRectangle Method

AVS.CreateRectangle Method

Creates a rectangle from an aligned point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreateRectangle
(
	AvlNet.Point2D inPoint,
	AvlNet.Anchor2D inPointAnchor,
	float inAngle,
	float inWidth,
	float inHeight,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

Name Type Range Default Description
inPointAvlNet.Point2D
inPointAnchorAvlNet.Anchor2DTopLeftAlignment of the input point relatively to the box of the position. Default value: TopLeft.
inAnglefloatClock-wise orientation angle.
inWidthfloat<0.0f, INF>Width of the created rectangle.
inHeightfloat<0.0f, INF>Height of the created rectangle.
outRectangleAvlNet.Rectangle2D

See also