Start » Filter Reference » Geometry 2D » Geometry 2D Spatial Transforms » RescalePoint
Module: | FoundationLite |
---|
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 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.