Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D » Geometry 2D Spatial Transforms » ResizeVector
Module: | FoundationLite |
---|
Lengthens or shortens a vector preserving its direction.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inVector | Vector2D | ||
![]() |
inNewLength | Real | 0.0 - ![]() |
|
![]() |
outVector | Vector2D |
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when a zero vector is given on input.
Examples
![]() |
ResizeVector performed on a vector (red one) with DeltaX = 0, DeltaY = 10 with parameter inNewLength = 5. outVector returns vector (blue one)
Complexity Level
This filter is available on Advanced Complexity Level.
Filter Group
This filter is member of ResizeVector filter group.