Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » RotateVector
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Rotates a vector clockwise.
Syntax
C++
C#
void fil::RotateVector ( const fil::Vector2D& inVector, float inAngle, bool inInverse, fil::Vector2D& outVector )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inVector | const Vector2D& | ||
![]() |
inAngle | float | Clockwise angle of rotation | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outVector | Vector2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inVector and outVector
Read more about In-place Computation.
Examples
![]() |
![]() |
RotateVector performed on the sample vector, inAngle = 135.0 and inInverse = False.