You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.ResizeVector_Delta

AVL.ResizeVector_Delta

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
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

List of possible exceptions:

Error type Description
DomainError Negative vector length in ResizeVector_Delta.

See also