Back to Aurora Vision Library website

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

ResizeVector_Delta


Header: AVL.h
Namespace: avl
Module: FoundationLite

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

Syntax

C++
C#
 
void avl::ResizeVector_Delta
(
	const avl::Vector2D& inVector,
	float inDelta,
	avl::Vector2D& outVector
)

Parameters

Name Type Default Description
Input value inVector const Vector2D&
Input value inDelta float 0.0f Value added to vector length
Output value outVector Vector2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inVector and outVector

Read more about In-place Computation.

Errors

List of possible exceptions:

Error type Description
DomainError Negative vector length in ResizeVector_Delta.