ResizeSegment


Lengthens or shortens a segment to a new length preserving its orientation and center point.

Syntax

C++
Python
 
def ResizeSegment(
	inSegment: Segment2D,
	inNewLength: float,
	inAnchor: float,
	/
)
-> outSegment: Segment2D

Parameters

Name Type Range Default Description
Input value inSegment Segment2D
Input value inNewLength float 0.0 -
Input value inAnchor float - -
Output value outSegment Segment2D