Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Basics » CreateVector
Produces a vector of given length and direction.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::CreateVector ( float inLength, float inDirection, avl::Vector2D& outVector )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inLength | float | Desired length of the vector in pixels | ||
inDirection | float | Desired direction of the vector in degrees | ||
outVector | Vector2D& | The resulting vector |