Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Spatial Transforms » RotateRegion
RotateRegion
Rotates a region around a point.
Syntax
C++
C#
void avl::RotateRegion ( const avl::Region& inRegion, atl::Optional<const avl::Point2D&> inCenter, atl::real inAngle, const bool inInverse, avl::Region& outRegion )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inCenter | Optional<const Point2D&> | NIL | Center of rotation |
![]() |
inAngle | real | Clockwise rotation angle | |
![]() |
inInverse | const bool | Switches to counter-clockwise rotation | |
![]() |
outRegion | 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.




