Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D Spatial Transforms » RescaleVector
Lengthens or shortens a vector relatively preserving its direction.
Name | Type | Description | |
---|---|---|---|
![]() |
inVector | Vector2D | |
![]() |
inScale | Real | Scaling factor |
![]() |
inInverse | Bool | Switches to the inverse operation |
![]() |
outVector | Vector2D |
Examples
![]() |
RescaleVector performed on a vector (red one) with DeltaX = 0, DeltaY = 10 with parameters inScale = 5, inInverse = True. outVector returns vector (blue one)
Errors
This filter can throw an exception to report error. Read how to deal with errors here: Error Handling
Error type | Description |
---|---|
DomainError | inScale cannot be zero in an inverse scaling in RescaleVector. |
Complexity Level
This filter is available on Basic Complexity Level.