Start » Filter Reference » Geometry 2D » Geometry 2D Spatial Transforms » RescaleSegment
Module: | FoundationLite |
---|
Lengthens or shortens a segment relatively.
Name | Type | Description | |
---|---|---|---|
inSegment | Segment2D | ||
inReferencePoint | Point2D* | The point to which all distances change linearly (the mass center by default) | |
inScale | Real | Scaling factor (negative values invert the segment) | |
inInverse | Bool | Switches to the inverse operation | |
outSegment | Segment2D |
Examples
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 segment in RescaleSegment. |
Complexity Level
This filter is available on Advanced Complexity Level.