Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 3D Spatial Transforms » RotateVector3D

RotateVector3D


Rotates a 3D vector around another 3D vector (the axis).

Syntax

C++
C#
 
void avl::RotateVector3D
(
	const avl::Vector3D& inVector3D,
	const avl::Vector3D& inAxisVector,
	float inAngle,
	bool inInverse,
	avl::Vector3D& outVector3D
)

Parameters

Name Type Default Description
inVector3D const Vector3D&
inAxisVector const Vector3D& Vector to rotate around
inAngle float Clockwise angle of rotation
inInverse bool Switches to the inverse operation
outVector3D Vector3D&