You are here: Start » AVL.NET » Invoke.ResizeVector

Invoke.ResizeVector

Lengthens or shortens a vector preserving its direction.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void ResizeVector
(
	Avl.Vector2D inVector,
	float inNewLength,
	out Avl.Vector2D outVector
)

Parameters

Name Type Range Default Description
inVectorAvl.Vector2D
inNewLengthfloat<0.0f, INF>1.0fDefault value: 1.0f.
outVectorAvl.Vector2D

See also