Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » ResizeVector_Delta
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 | |
---|---|---|---|---|
inVector | const Vector2D& | |||
inDelta | float | 0.0f | Value added to vector length | |
outVector | Vector2D& |
Errors
Error type | Description |
---|---|
DomainError | Negative vector length in ResizeVector_Delta. |