Back to FabImage Library Lite website

You are here: Start » Geometry 2D Spatial Transforms » RotateVector

RotateVector


Rotates a vector clockwise.

Syntax

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&

Examples

RotateVector performed on the sample vector, inAngle = 135.0 and inInverse = False.