Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RotateVector
Rotates a vector clockwise.
Syntax
C++
C#
void avl::RotateVector ( const avl::Vector2D& inVector, atl::real inAngle, bool inInverse, avl::Vector2D& outVector )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inVector | const Vector2D& | ||
![]() |
inAngle | real | Clockwise angle of rotation | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outVector | Vector2D& |
Examples
![]() |
![]() |
RotateVector performed on the sample vector, inAngle = 135.0 and inInverse = False.




