Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D Basics » CreateVector
Header: | FIL.h |
---|---|
Namespace: | fil |
Produces a vector of given length and direction.
Syntax
C++
C#
void fil::CreateVector ( float inLength, float inDirection, fil::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 |