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

AVL.RotateRegion(AvlNet.Region, AvlNet.Point2D?, float, bool, AvlNet.Region)

Rotates a region around a point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RotateRegion(
	AvlNet.Region inRegion,
	AvlNet.Point2D? inCenter,
	float inAngle,
	bool inInverse,
	out AvlNet.Region outRegion
)

Parameters

inRegion
Type: AvlNet.Region
Input region
inCenter
Type: System.Nullable<AvlNet.Point2D>
Center of rotation, or null.
inAngle
Type: System.Single
Clockwise rotation angle
inInverse
Type: System.Boolean
Switches to counter-clockwise rotation
outRegion
Type: AvlNet.Region
Output region

Description

The operation rotates a region by the inAngle degrees around inCenter point. If the inCenter is not provided, the rotation is conducted around the mass center of the region.

Examples

RotateRegion performed on the sample region with inAngle set to 45.

See also