Back to Aurora Vision Library website

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

CreateVector


Header: AVL.h
Namespace: avl
Module: FoundationLite

Produces a vector of given length and direction.

Syntax

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

Parameters

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