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

AVS.RescaleVector Method

Lengthens or shortens a vector relatively preserving its direction.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void RescaleVector
(
	AvlNet.Vector2D inVector,
	float inScale,
	bool inInverse,
	out AvlNet.Vector2D outVector
)

Parameters

Name Type Range Default Description
inVectorAvlNet.Vector2D
inScalefloat1.0fScaling factor. Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outVectorAvlNet.Vector2D

See also