Back to FabImage Studio websiteYou are here:
Start »
Filter Reference »
Geometry 2D »
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 in Error Handling.
List of possible exceptions:
Error type |
Description |
DomainError |
Scale cannot be zero in an inverse scaling of vector in RescaleVector. |
Complexity Level
This filter is available on Advanced Complexity Level.