NormalizeSegmentOrientation_ByCoordinate


Changes orientation of the given segment according to coordinates along selected axis.

Syntax

C++
Python
 
def NormalizeSegmentOrientation_ByCoordinate(
	inSegment: Segment2D,
	/,
	*,
	inAxis: Axis = Axis.X
)
-> outSegment: Segment2D

Parameters

Name Type Default Description
Input value inSegment Segment2D
Input value inAxis Axis Axis.X An axis relative to which coordinates are compared
Output value outSegment Segment2D A segment in which the first point will have smaller coordinate along the selected axis