Back to Adaptive 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
inRectangle Rectangle2D
inReferencePoint Point2D* The point, to which all distance will be changed proportionally
inScale Real Scaling factor
inInverse Bool Switches to the inverse operation
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 Basic Complexity Level.