You are here: Start » AVL.NET » AVL.RotateRectangle(AvlNet.Rectangle2D, AvlNet.Point2D?, float, bool, AvlNet.Rectangle2D)

AVL.RotateRectangle(AvlNet.Rectangle2D, AvlNet.Point2D?, float, bool, AvlNet.Rectangle2D)

Rotates a rectangle clockwise around a center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RotateRectangle(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Point2D? inCenter,
	float inAngle,
	bool inInverse,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

inRectangle
Type: AvlNet.Rectangle2D
inCenter
Type: System.Nullable<AvlNet.Point2D>
Center of rotation (the rectangle's point by default), or null.
inAngle
Type: System.Single
Clockwise rotation angle
inInverse
Type: System.Boolean
Switches to the inverse operation
outRectangle
Type: AvlNet.Rectangle2D

Examples

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

See also