CreateCoordinateSystemFromSegment


Creates a coordinate system with the origin on a given segment.

Syntax

C++
Python
 
def CreateCoordinateSystemFromSegment(
	inSegment: Segment2D,
	/,
	*,
	inPointAnchor: float = 0.0,
	inRelativeAngle: float = 0,
	inScale: float = 1.0,
	inScaleDivisor: float = 1.0
)
-> outCoordinateSystem: CoordinateSystem2D

Parameters

Name Type Range Default Description
Input value inSegment Segment2D
Input value inPointAnchor float -1.0 - 1.0 0.0
Input value inRelativeAngle float 0
Input value inScale float 0.001 - 1.0
Input value inScaleDivisor float 0.001 - 1.0
Output value outCoordinateSystem CoordinateSystem2D