RescaleSegment
Lengthens or shortens a segment relatively.
Syntax
C++
Python
def RescaleSegment( inSegment: Segment2D, /, *, inReferencePoint: Point2D | None = None, inScale: float = 1.0, inInverse: bool = False ) -> outSegment: Segment2D
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inSegment | Segment2D | ||
![]() |
inReferencePoint | Point2D | None | None | The point to which all distances change linearly (the mass center by default) |
![]() |
inScale | float | 1.0 | Scaling factor (negative values invert the segment) |
![]() |
inInverse | bool | False | Switches to the inverse operation |
![]() |
outSegment | Segment2D |


