You are here: Start » AVL.NET » AVL.RotateRegion Method
AVL.RotateRegion Method
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, int? inFrameWidth, int? inFrameHeight, out AvlNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | AvlNet.Region | Input region. | ||
![]() | inCenter | AvlNet.Point2D? | Center of rotation. Default value: atl::NIL, or null. | ||
![]() | inAngle | float | Clockwise rotation angle. | ||
![]() | inInverse | bool | Switches to counter-clockwise rotation. | ||
![]() | inFrameWidth | int? | <1, INF> | Output region frame width. Default value: atl::NIL, or null. | |
![]() | inFrameHeight | int? | <1, INF> | Output region frame height. Default value: atl::NIL, or null. | |
![]() | outRegion | 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.