You are here: Start » AVL.NET » AVL.ResizeVector_Delta Method

AVL.ResizeVector_Delta Method

Extends length of a vector by adding a value preserving its direction.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ResizeVector_Delta(
	AvlNet.Vector2D inVector,
	float inDelta,
	out AvlNet.Vector2D outVector
)

Parameters

Name Type Range Default Description
inVectorAvlNet.Vector2D
inDeltafloat0.0fValue added to vector length. Default value: 0.0f.
outVectorAvlNet.Vector2D

Errors

Error type Description
DomainError Negative vector length in ResizeVector_Delta.

See also