Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D Spatial Transforms » RescalePoint
Changes the distance of a point to a reference point.
Name | Type | Description | |
---|---|---|---|
![]() |
inPoint | Point2D | |
![]() |
inReferencePoint | Point2D | Point to which the distance will be changed |
![]() |
inScale | Real | Scaling factor |
![]() |
inInverse | Bool | Switches to the inverse operation |
![]() |
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 here: Error Handling
Error type | Description |
---|---|
DomainError | inScale cannot be zero in an inverse rescaling of a point in RescalePoint. |
Complexity Level
This filter is available on Basic Complexity Level.