Back to Adaptive Vision Library Lite website
You are here: Start » Geometry 2D Basics » CreateVector
CreateVector
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Produces a vector of given length and direction.
Syntax
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 |


