CreateSegment
Produces a segment of given parameters.
Syntax
C++
Python
def CreateSegment( inPoint: Point2D, inPointAnchor: float, inDirection: float, inLength: float, / ) -> outSegment: Segment2D
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoint | Point2D | A point on the created segment | ||
![]() |
inPointAnchor | float | 0.0 - 1.0 | Anchor point, 0 means the beginning, 1 means the end of the segment | |
![]() |
inDirection | float | Desired direction of the segment in degrees | ||
![]() |
inLength | float | Desired length of the segment in pixels | ||
![]() |
outSegment | Segment2D | The resulting segment |


