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, float inAngle, const bool inInverse, atl::Optional<int> inFrameWidth, atl::Optional<int> inFrameHeight, avl::Region& outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | const Region& | Input region | |||
inCenter | Optional<const Point2D&> | NIL | Center of rotation | ||
inAngle | float | Clockwise rotation angle | |||
inInverse | const bool | Switches to counter-clockwise rotation | |||
inFrameWidth | Optional<int> | 1 - | NIL | Output region frame width | |
inFrameHeight | Optional<int> | 1 - | NIL | Output region frame height | |
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.