Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Basics » CreateVector

CreateVector


Produces a vector of given length and direction.

Syntax

C++
C#
 
void avl::CreateVector
(
	atl::real inLength,
	atl::real inDirection,
	avl::Vector2D& outVector
)

Parameters

Name Type Default Description
inLength real Desired length of the vector in pixels
inDirection real Desired direction of the vector in degrees
outVector Vector2D& The resulting vector