Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » ResizeVector_Delta
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Extends length of a vector by adding a value preserving its direction.
Syntax
C++
C#
void fil::ResizeVector_Delta ( const fil::Vector2D& inVector, float inDelta, fil::Vector2D& outVector )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inVector | const Vector2D& | ||
![]() |
inDelta | float | 0.0f | Value added to vector length |
![]() |
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. |