NormalizeSegmentOrientation_ByPointDistance


Changes orientation of the given segment according to distance to the given point.

Syntax

C++
Python
 
def NormalizeSegmentOrientation_ByPointDistance(
	inSegment: Segment2D,
	inReferencePoint: Point2D,
	/
)
-> outSegment: Segment2D

Parameters

Name Type Default Description
Input value inSegment Segment2D
Input value inReferencePoint Point2D A point relative to which distances are measured
Output value outSegment Segment2D A segment in which the first point is closer to inReferencePoint