Back to FabImage Studio website

You are here: Start » Filter Reference » Geometry 2D » Geometry 2D Spatial Transforms » RescaleVector

RescaleVector


Module: FoundationLite

Lengthens or shortens a vector relatively preserving its direction.

Name Type Description
Input value inVector Vector2D
Input value inScale Real Scaling factor
Input value inInverse Bool Switches to the inverse operation
Output value 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.