Back to Aurora Vision Studio website

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

RescaleRectangle


Module: FoundationLite

Changes the corners and the dimensions of a rectangle.

Name Type Description
Input value inRectangle Rectangle2D
Input value inReferencePoint Point2D* The point, to which all distance will be changed proportionally
Input value inScale Real Scaling factor
Input value inInverse Bool Switches to the inverse operation
Output value outRectangle Rectangle2D

Examples

RescaleRectangle performed on the sample rectangle, inReferencePoint = (0.0, 0.0), inScale = 2.0 and inInverse = false.

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 inverse scaling of rectangle in RescaleRectangle.

Complexity Level

This filter is available on Advanced Complexity Level.