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

AVL.CreateVector

Produces a vector of given length and direction.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateVector
(
	float inLength,
	float inDirection,
	out AvlNet.Vector2D outVector
)

Parameters

Name Type Range Default Description
inLengthfloatDesired length of the vector in pixels.
inDirectionfloatDesired direction of the vector in degrees.
outVectorAvlNet.Vector2DThe resulting vector.

See also