You are here: Start » AVL.NET » AVS.ResizeVector Method

AVS.ResizeVector Method

Lengthens or shortens a vector preserving its direction.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ResizeVector
(
	AvlNet.Vector2D inVector,
	float inNewLength,
	out AvlNet.Vector2D outVector
)

Parameters

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

See also