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

AVL.RotateRectangle

Rotates a rectangle clockwise around a center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RotateRectangle
(
	AvlNet.Rectangle2D inRectangle,
	float inAngle,
	bool inInverse,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inAnglefloatClockwise rotation angle.
inInverseboolSwitches to the inverse operation.
outRectangleAvlNet.Rectangle2D

Examples

RotateRectangle performed on the sample rectangle, inCenter = Auto, inAngle = 40.0 and inInverse = False.

Function Overrides

See also