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:
where, t=0 is the first point and t=1 is the second point.
Arguments
Value Returned
Example
ccCreateLineSegment(-1:-1 1:1)
> cc@0x269c83f0
Related Topics
Curvy Core Mathematical Object Creation Functions
Return to top