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

ccGetCurvePoint

ccGetCurvePoint(
g_curve
n_t
) 
=> l_xy

Description

(Virtuoso Photonics Option) Returns a point on a curve or a polyCurve segment at the specified value of the curve function parameter.

Arguments

g_curve

ID of a ccCurve object or a segment of a ccPolyCurve object in the form:

list(o_curve l_transform)

where,

  • o_curve is the ID of a ccCurve object.
  • l_transform is the transformation in the format:
    list(list(n_x n_y) n_angle)
    where:
    • n_angle is the rotation angle around (0, 0).
    • n_x and n_y determine the offsets along the X-axis and the Y-axis in this format (0,0).

Value Returned

l_xy

Coordinates of the point on a curve or a polyCurve segment.

Example

c=ccCreateCurve("t" "t^2" 0:1)
> cc@0xe74d47d9
ccGetCurvePoint(c 0.5)
> (0.5 0.25)
ccGetCurvePoint(list(c list(1:1 180)) 0.5)
> (0.5 0.75)

Related Topics

Curvy Core Mathematical Object Attribute Query Functions


Return to top
 ⠀
X