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
Input value inSegment Segment2D
Input value inReferencePoint Point2D | None None The point to which all distances change linearly (the mass center by default)
Input value inScale float 1.0 Scaling factor (negative values invert the segment)
Input value inInverse bool False Switches to the inverse operation
Output value outSegment Segment2D