Back to Aurora Vision Studio website

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

RescalePoint


Module: FoundationLite

Changes the distance of a point to a reference point.

Name Type Description
Input value inPoint Point2D
Input value inReferencePoint Point2D Point to which the distance will be changed
Input value inScale Real Scaling factor
Input value inInverse Bool Switches to the inverse operation
Output value outPoint Point2D

Examples

RescalePoint performed on the sample point, inReferencePoint = (150.0, 150.0), inScale = -1.5 and inInverse = false. The inReferencePoint point is drawn on the first image in blue.

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 rescaling of a point in RescalePoint.

Complexity Level

This filter is available on Advanced Complexity Level.