Back to Aurora Vision Library Lite website

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

RotateVector


Header: AVL.h
Namespace: avl

Rotates a vector clockwise.

Syntax

void avl::RotateVector
(
	const avl::Vector2D& inVector,
	float inAngle,
	bool inInverse,
	avl::Vector2D& outVector
)

Parameters

Name Type Default Description
Input value inVector const Vector2D&
Input value inAngle float Clockwise angle of rotation
Input value inInverse bool Switches to the inverse operation
Output value 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.