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 | |
|---|---|---|---|---|
![]() |
inSegment | Segment2D | ||
![]() |
inAxis | Axis | Axis.X | An axis relative to which coordinates are compared |
![]() |
outSegment | Segment2D | A segment in which the first point will have smaller coordinate along the selected axis |


