Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

ccCreateLineSegment

ccCreateLineSegment(
l_pt1
l_pt2
) => o_curve / nil

Description

(Virtuoso Photonics Option) Creates a ccCurve object that represents a straight line segment connecting two specified points.

The parameter range of the segment is:

t=[0,1]

where, t=0 is the first point and t=1 is the second point.

Arguments

l_pt1

list(l_x l_y)

The start point of the line segment.

l_pt2

list(l_x l_y)

The end point of the line segment.

Value Returned

o_curve

ID of the resulting ccCurve.

nil

An error occurred.

Example

ccCreateLineSegment(-1:-1 1:1)
> cc@0x269c83f0

Related Topics

Curvy Core Mathematical Object Creation Functions


Return to top
 ⠀
X