CreateVector


Produces a vector of given length and direction.

Syntax

C++
Python
 
def CreateVector(
	inLength: float,
	inDirection: float,
	/
)
-> outVector: Vector2D

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