Back to Adaptive 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
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

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 Basic Complexity Level.