Back to Aurora Vision Studio website

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

RescaleSegment


Module: FoundationLite

Lengthens or shortens a segment relatively.

Name Type Description
Input value inSegment Segment2D
Input value inReferencePoint Point2D* The point to which all distances change linearly (the mass center by default)
Input value inScale Real Scaling factor (negative values invert the segment)
Input value inInverse Bool Switches to the inverse operation
Output value outSegment Segment2D

Examples

RescaleSegment performed on the sample segment, inReferencePoint = auto, 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 an inverse rescaling of a segment in RescaleSegment.

Complexity Level

This filter is available on Advanced Complexity Level.