NormalizeSegmentOrientation_ByBaseOrientation


Changes orientation of the given segment according to base orientation.

Syntax

C++
Python
 
def NormalizeSegmentOrientation_ByBaseOrientation(
	inSegment: Segment2D,
	/,
	*,
	inBaseOrientation: float = 0.0
)
-> outSegment: Segment2D

Parameters

Name Type Default Description
Input value inSegment Segment2D
Input value inBaseOrientation float 0.0 An angle relative to which angle differences are calculated
Output value outSegment Segment2D A segment which orientation is closer to inBaseOrientation